/* ==========================================================================
   ALJANIA HEADINGS & SECTION TITLES WIDGET - FRONTEND CSS
   ========================================================================== */

.aljania-heading-wrapper {
    --aljania-primary: #e65c00;
    position: relative;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 25px;
}

/* Subtitle Badges */
.aljania-heading-badge-box {
    margin-bottom: 12px;
}

.aljania-heading-subtitle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.825rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--aljania-primary);
    background: rgba(230, 92, 0, 0.08);
    padding: 6px 16px;
    border-radius: 30px;
    border: 1px solid rgba(230, 92, 0, 0.2);
}

.aljania-heading-subtitle .badge-icon {
    font-size: 0.9rem;
    color: var(--aljania-primary);
}

/* Main Title */
.aljania-heading-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
    margin: 0 0 14px 0;
    letter-spacing: -0.5px;
}

/* Description */
.aljania-heading-desc {
    font-size: 1.05rem;
    color: #64748b;
    line-height: 1.6;
    max-width: 750px;
    margin: 14px 0 0 0;
}

.aljania-heading-wrapper[style*="text-align: center"] .aljania-heading-desc {
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================================================
   HEADING MODELS STYLING
   ========================================================================== */

/* Model 1: Classic ONG Branding */
.style-classic_branding .aljania-heading-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
}

.style-classic_branding .aljania-heading-divider .line {
    display: inline-block;
    width: 60px;
    height: 3px;
    background: var(--aljania-primary);
    border-radius: 3px;
}

.style-classic_branding .aljania-heading-divider .divider-icon {
    color: var(--aljania-primary);
    font-size: 1.1rem;
}

.aljania-heading-wrapper[style*="text-align: center"] .style-classic_branding .aljania-heading-divider,
.aljania-heading-wrapper[style*="text-align:center"] .style-classic_branding .aljania-heading-divider {
    justify-content: center;
}

/* Model 2: Highlight Marker */
.style-highlight_marker .aljania-heading-subtitle {
    background: var(--aljania-primary);
    color: #ffffff !important;
    border: none;
    box-shadow: 0 4px 14px rgba(230, 92, 0, 0.3);
}

.style-highlight_marker .aljania-heading-subtitle .badge-icon {
    color: #ffffff;
}

/* Model 3: Left Bar Accent */
.style-left_bar_accent {
    border-left: 5px solid var(--aljania-primary);
    padding-left: 20px;
}

/* Model 4: Centered Wings */
.style-centered_wings .aljania-heading-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
}

.style-centered_wings .aljania-heading-title::before,
.style-centered_wings .aljania-heading-title::after {
    content: '';
    flex: 1;
    max-width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--aljania-primary));
}

.style-centered_wings .aljania-heading-title::after {
    background: linear-gradient(90deg, var(--aljania-primary), transparent);
}

/* Model 5: Gradient Glass */
.style-gradient_glass .aljania-heading-title {
    background: linear-gradient(135deg, var(--aljania-primary) 0%, #1e293b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.style-gradient_glass .aljania-heading-subtitle {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(230, 92, 0, 0.3);
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */

/* Animation 1: Fade Up */
.anim-fade_up {
    animation: headingFadeUp 0.8s ease forwards;
}

@keyframes headingFadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animation 2: Line Expand */
.anim-line_expand .aljania-heading-divider .line {
    animation: lineExpand 1s ease forwards;
}

@keyframes lineExpand {
    from { width: 0; }
    to { width: 60px; }
}

/* Animation 3: Badge Pulse */
.anim-badge_pulse .aljania-heading-subtitle {
    animation: badgePulse 2s infinite ease-in-out;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Responsive Scaling */
@media (max-width: 991px) {
    .aljania-heading-title {
        font-size: 2.1rem;
    }
}

@media (max-width: 600px) {
    .aljania-heading-title {
        font-size: 1.7rem;
    }
}
