/* ===== Hero — مطابق حرفياً للملف المرجعي ===== */
.hero-waqf {
    --primary-color: #2c3e7a;
    --primary-dark: #1a2a5c;
    --secondary-color: #e8a838;
    --secondary-light: #f5c85a;
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --radius-sm: 6px;
    --radius-lg: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-primary: var(--font-heading, 'Cairo', sans-serif);

    background: linear-gradient(145deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    color: #fff;
    padding: 64px 0 56px;
    position: relative;
    overflow: hidden;
    font-family: var(--font-primary);
    font-size: 17px;
}

.hero-waqf::before {
    content: '';
    position: absolute;
    top: -40%;
    left: -20%;
    width: 600px;
    height: 600px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
    pointer-events: none;
}

.hero-waqf::after {
    content: '';
    position: absolute;
    bottom: -30%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: rgba(232, 168, 56, 0.08);
    border-radius: 50%;
    pointer-events: none;
}

/* مسافات الجوانب — نفس الملف المرجعي (24px / عرض 1280) */
.hero-waqf .container.hero-layout,
.hero-waqf .hero-layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 40px;
    align-items: start;
    max-width: 1280px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
    box-sizing: border-box;
}

.hero-waqf .hero-content h2 {
    font-family: var(--font-primary);
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.35;
    margin: 0 0 16px;
    color: #fff;
}

.hero-waqf .hero-content h2 .highlight-gold {
    color: var(--secondary-color);
}

.hero-waqf .hero-content p {
    font-family: var(--font-primary);
    font-size: 1.25rem;
    font-weight: 400;
    opacity: 0.88;
    max-width: 620px;
    margin: 0 0 24px;
    line-height: 1.8;
    color: #fff;
}

.hero-waqf .hero-actions {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    margin: 8px 0 0;
}

.hero-waqf .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 35px;
    border-radius: 60px;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.4;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-primary);
    text-decoration: none;
}

/* Primary — white capsule (تصفح الأبحاث) */
.hero-waqf .btn-hero-primary {
    background: #fff;
    color: #003D6B;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.hero-waqf .btn-hero-primary:hover {
    background: #fff;
    color: #003D6B;
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Secondary — outlined glass (إرسال بحث / العدد الحالي) */
.hero-waqf .btn-hero-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.hero-waqf .btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: #fff;
    transform: translateY(-5px);
}

.hero-waqf .hero-stats {
    display: flex;
    gap: 48px;
    margin: 28px 0 0;
}

.hero-waqf .hero-stats .stat-item {
    text-align: center;
    background: transparent;
    border: none;
    padding: 0;
}

.hero-waqf .hero-stats .stat-number {
    font-family: var(--font-primary);
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--secondary-color);
    display: block;
    line-height: 1.2;
}

.hero-waqf .hero-stats .stat-label {
    font-family: var(--font-primary);
    font-size: 0.95rem;
    line-height: 1.4;
    opacity: 0.7;
    color: #ffffff !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    font-weight: 400;
    display: inline;
}

.hero-waqf .hero-aside {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-width: 0;
    align-self: start;
    margin-top: 48px;
    padding-top: 8px;
}

.hero-waqf .hero-issn-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    width: 100%;
}

.hero-waqf .hero-barcode {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 78%;
    max-width: 260px;
    box-sizing: border-box;
    padding: 9px 14px 8px;
    background: linear-gradient(160deg, #f7fafc 0%, #eef4f9 100%);
    border-radius: 12px;
    border: 1px solid rgba(0, 91, 154, 0.18);
    box-shadow: 0 8px 18px rgba(8, 24, 56, 0.14);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hero-waqf .hero-barcode:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(8, 24, 56, 0.18);
}

.hero-waqf .hero-barcode-bars {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 2px;
    width: 100%;
    max-width: 200px;
    height: 36px;
    padding: 0 6px;
    box-sizing: border-box;
    direction: ltr;
}

.hero-waqf .hero-barcode-bars span {
    display: block;
    height: 100%;
    flex: 1 1 0;
    min-width: 1.5px;
    max-width: 4px;
    background: #123a63;
    border-radius: 1px;
}

.hero-waqf .hero-barcode-bars span:nth-child(3n) { width: 3px; }
.hero-waqf .hero-barcode-bars span:nth-child(4n) { width: 1.5px; opacity: 0.88; }
.hero-waqf .hero-barcode-bars span:nth-child(5n) { width: 3.5px; }
.hero-waqf .hero-barcode-bars span:nth-child(7n) { width: 2.5px; }
.hero-waqf .hero-barcode-bars span:nth-child(11n) { width: 4px; }
.hero-waqf .hero-barcode-bars span:first-child,
.hero-waqf .hero-barcode-bars span:nth-child(2),
.hero-waqf .hero-barcode-bars span:nth-last-child(2),
.hero-waqf .hero-barcode-bars span:last-child {
    width: 3px;
    background: #005B9A;
}

.hero-waqf .hero-barcode-value {
    font-family: 'Courier New', 'Cairo', monospace;
    font-size: 0.84rem;
    font-weight: 700;
    color: #005B9A;
    letter-spacing: 0.08em;
    line-height: 1;
}

.hero-waqf .hero-barcode--online .hero-barcode-bars span:first-child,
.hero-waqf .hero-barcode--online .hero-barcode-bars span:nth-child(2),
.hero-waqf .hero-barcode--online .hero-barcode-bars span:nth-last-child(2),
.hero-waqf .hero-barcode--online .hero-barcode-bars span:last-child {
    background: #C9A34E;
}

@media (prefers-reduced-motion: reduce) {
    .hero-waqf .hero-barcode:hover {
        transform: none;
    }
}

.hero-waqf .hero-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(6px);
    border-radius: var(--radius-lg);
    padding: 26px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-sizing: border-box;
}

.hero-waqf .hero-feature-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.04);
    transition: var(--transition);
}

.hero-waqf .hero-feature-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: none;
}

.hero-waqf .hero-feature-item i {
    font-size: 1.5rem;
    color: var(--secondary-color);
    width: 32px;
    text-align: center;
    flex-shrink: 0;
}

.hero-waqf .hero-feature-item span {
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.45;
    color: #fff;
}

@media (max-width: 1024px) {
    .hero-waqf .container.hero-layout,
    .hero-waqf .hero-layout {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 32px;
        padding-left: 24px;
        padding-right: 24px;
    }

    .hero-waqf .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-waqf .hero-stats,
    .hero-waqf .hero-actions {
        justify-content: center;
    }

    .hero-waqf .hero-aside {
        max-width: 520px;
        margin-left: auto;
        margin-right: auto;
        margin-top: 36px;
        width: 100%;
        text-align: right;
        align-items: stretch;
    }

    .hero-waqf .hero-features {
        grid-template-columns: 1fr 1fr;
        max-width: 520px;
        margin-left: auto;
        margin-right: auto;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .hero-waqf {
        padding: 40px 0 36px;
    }

    .hero-waqf .container.hero-layout,
    .hero-waqf .hero-layout {
        padding-left: 20px;
        padding-right: 20px;
        gap: 24px;
    }

    .hero-waqf .hero-content h2 {
        font-size: 2rem;
    }

    .hero-waqf .hero-content p {
        font-size: 1.05rem;
    }

    .hero-waqf .hero-features {
        grid-template-columns: 1fr;
        padding: 16px;
    }

    .hero-waqf .hero-stats {
        gap: 16px;
        flex-wrap: wrap;
    }

    .hero-waqf .hero-stats .stat-number {
        font-size: 1.9rem;
    }
}

@media (max-width: 480px) {
    .hero-waqf .container.hero-layout,
    .hero-waqf .hero-layout {
        padding-left: 16px;
        padding-right: 16px;
    }

    .hero-waqf .hero-content h2 {
        font-size: 1.6rem;
    }

    .hero-waqf .hero-actions {
        flex-direction: column;
    }

    .hero-waqf .hero-actions .btn {
        padding: 10px 20px;
        font-size: 0.85rem;
        width: 100%;
        justify-content: center;
    }
}
