/* ============================================
   Header.css - استایل هدر پویا
   ============================================ */

.header {
    grid-area: header;
    position: relative;
    color: var(--text-light, #ffffff);
    border-radius: 0;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--primary-dark, #1a2a3a);
}

/* ===== پس‌زمینه (تصویر از index.php به‌صورت inline می‌آید) ===== */
.header-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background-color: var(--primary-dark, #1a2a3a);
    /* مقادیر پیش‌فرض — از inline style بازنویسی می‌شوند */
    background-position: center;
    background-repeat: repeat-x;
    background-size: auto 100%;
}

.header-content {
    position: relative;
    z-index: 1;
    text-align: center;
    text-shadow: 0 2px 15px rgba(0,0,0,0.8);
    padding: var(--gap-lg, 1rem);
    flex: 1;
}

.header-content h1 {
    font-size: 2.2rem;
    margin: 0;
    font-weight: 700;
    letter-spacing: 1px;
}

.header-content p {
    font-size: 1.1rem;
    margin: 0.5rem 0 0;
    opacity: 0.9;
    font-weight: 300;
}

/* ============================================
   واکنش‌گرایی هدر
   ============================================ */

@media(min-width: 768px) {
    .header { min-height: 220px; }
    .header-content h1 { font-size: 2.8rem; }
    .header-content p  { font-size: 1.3rem; }
}

@media(min-width: 1024px) {
    .header { min-height: 250px; }
    .header-content h1 { font-size: 3.2rem; }
    .header-content p  { font-size: 1.5rem; }
}

@media(min-width: 1200px) {
    .header { min-height: 280px; }
    .header-content h1 { font-size: 3.8rem; }
    .header-content p  { font-size: 1.7rem; }
}