/* ====== GLOBAL ====== */
body {
    margin: 0;
    font-family: "Nunito", sans-serif; /* caractere mai rotunjite */
    background: #f5f7fa;
    color: #333;
}

/* ====== HEADER ====== */
.topbar {
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    display: flex;
    justify-content: center;
    padding: 0;
}

/* container cu lățime fixă = grid */
.header-container {
    width: 1100px;
    display: flex;
    justify-content: space-between;
    align-items: center; /* sigla + text centrate vertical */
    padding: 10px 20px;
}

/* ====== SIGLA + TEXT ====== */
.header-left {
    display: flex;
    align-items: center; /* text centrat pe mijlocul siglei */
    gap: 20px;
    
}

.header-logo {
    height: 120px;
    width: auto;
}

.header-text-block {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
}

.header-title {
    margin: 0;
    font-size: 32px;
    font-weight: 700;
    color: #2c3e50;
    font-family: "Nunito", sans-serif;
}

.header-subtitle {
    margin: 4px 0 0 0;
    font-size: 16px;
    color: #555;
    font-family: "Nunito", sans-serif;
}

/* ====== BUTOANE (mai jos) ====== */
.header-right {
    display: flex;
    gap: 15px;

    /* TRUCUL MAGIC: le scoatem din centrare */
    align-self: flex-end;

    /* le coborâm puțin */
    margin-top: 25px;
}

.btn {
    padding: 10px 18px;
    border-radius: 999px;
    background: #e9ecef;
    text-decoration: none;
    font-weight: 600;
    color: #333;
    transition: 0.2s;
}

.btn:hover {
    background: #d0d4d8;
}

.logout-form {
    display: inline;
}

/* ====== CONTAINER ====== */
.container {
    max-width: 1100px;
    margin: 20px auto;
    padding: 0 20px;
}

/* ====== HERO ====== */
.hero {
    background: #eaf4ff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-bottom: 25px;
}

.hero-title {
    display: flex;
    align-items: center;
    gap: 20px;
}

.hero-logo {
    height: 70px;
    width: auto;
}

.hero-text h1 {
    margin: 0;
    font-size: 30px;
    font-weight: 700;
    color: #2c3e50;
}

.hero-text p {
    margin: 5px 0 0 0;
    font-size: 18px;
    color: #555;
}

/* ====== WIDE CARDS ====== */
.wide-card {
    background: #f7f7f7;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-bottom: 25px;
    border: 1px solid #e2e2e2;
}

.wide-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
}

.wide-text {
    flex: 1;
}

.wide-text h2 {
    margin-top: 0;
    font-size: 26px;
    font-weight: 700;
}

.wide-text p {
    text-align: justify;
    font-size: 17px;
    line-height: 1.5;
}

.wide-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.btn-primary {
    display: flex;
    justify-content: center;
    align-items: center;

    padding: 12px 20px;
    background: #4da3ff;
    color: white;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.2s;
}

.btn-primary:hover {
    background: #1f8bff;
}

/* ====== GRID ====== */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
    gap: 25px;
}

/* ====== CARDURI ====== */
.card {
    background: #f7f7f7;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card h2 {
    font-size: 24px;
    font-weight: 700;
    margin-top: 0;
}

.card p,
.card ul,
.card li {
    text-align: justify;
    font-size: 17px;
    color: #555;
}

.card ul {
    padding-left: 20px;
}

.card li {
    margin-bottom: 8px;
}

/* ====== PERIOADĂ ====== */
.period {
    text-align: center;
    margin-top: 30px;
}

.blink {
    animation: blink 1s infinite;
    color: #3498db;
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 1; }
}
.wide-text .period {
    text-align: center;
}
.period {
    margin-top: 20px;
    font-size: 18px;
    font-weight: 600;
    color: #1f6fd8;      
    display: block;      
    width: 100%;        
}




/* ====== FOOTER ====== */
.footer {
    display: flex;
    justify-content: space-between; /* stânga + dreapta */
    align-items: center;
    padding: 10px 20px;
}

