/* MA Advanced Heading - Light White Theme & 4 Styles */
.ma-heading-wrapper {
    position: relative;
    padding: 20px 0;
}

/* Common Styles */
.ma-subtitle {
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    color: #4CAF50;
}

.ma-title {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 20px;
    color: #2c3e50;
}

.ma-description {
    font-size: 16px;
    line-height: 1.6;
    color: #6c757d;
    margin: 0;
}

.ma-description,
.ma-description * {
    font-family: inherit !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    line-height: inherit !important;
    color: inherit !important;
}

.ma-description p {
    margin: 0 0 10px;
}

.ma-description p:last-child {
    margin-bottom: 0;
}

.ma-description strong {
    font-weight: 700;
    color: #2c3e50;
}

.ma-description em {
    font-style: italic;
}

.ma-description a {
    color: #4CAF50;
    text-decoration: none;
}

.ma-description a:hover {
    text-decoration: underline;
}

.ma-description ul,
.ma-description ol {
    margin: 10px 0;
    padding-left: 20px;
}

.ma-description li {
    margin-bottom: 5px;
}

/* Style 1: Modern Clean */
.ma-heading-style_1 {
    background: rgba(255,255,255,0.95);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.ma-heading-style_1 .ma-subtitle {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(76, 175, 80, 0.1);
    border-radius: 20px;
    font-size: 14px;
}

.ma-heading-style_1 .ma-title {
    font-size: 42px;
    font-weight: 800;
}

/* Style 2: Background Text */
.ma-heading-style_2 {
    position: relative;
    padding: 40px 20px;
}

.ma-background-text {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    font-size: 120px;
    font-weight: 900;
    color: rgba(76, 175, 80, 0.08);
    z-index: 0;
    pointer-events: none;
    line-height: 1;
    white-space: nowrap;
}

.ma-heading-style_2 .ma-subtitle,
.ma-heading-style_2 .ma-title,
.ma-heading-style_2 .ma-description {
    position: relative;
    z-index: 1;
}

.ma-heading-style_2 .ma-title {
    font-size: 38px;
    font-weight: 700;
}

/* Style 3: Underline Accent */
.ma-heading-style_3 {
    padding: 25px 0;
}

.ma-heading-style_3 .ma-subtitle {
    margin-bottom: 15px;
}

.ma-heading-style_3 .ma-title {
    position: relative;
    display: inline-block;
    font-size: 40px;
    border-bottom: none;
    text-decoration: none;
}

.ma-heading-style_3 .ma-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: #4CAF50;
    border-radius: 2px;
    display: block;
}

/* Style 4: Badge Style */
.ma-heading-style_4 {
    padding: 30px 0;
}

.ma-heading-style_4 .ma-subtitle {
    display: inline-block;
    background: #4CAF50;
    color: #ffffff;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 15px;
}

.ma-heading-style_4 .ma-title {
    font-size: 44px;
    font-weight: 800;
    background: linear-gradient(135deg, #2c3e50, #4CAF50);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .ma-title {
        font-size: 32px;
    }
    
    .ma-heading-style_1 .ma-title,
    .ma-heading-style_2 .ma-title,
    .ma-heading-style_3 .ma-title {
        font-size: 34px;
    }
    
    .ma-heading-style_4 .ma-title {
        font-size: 38px;
    }
    
    .ma-background-text {
        font-size: 100px;
    }
}

@media (max-width: 768px) {
    .ma-heading-wrapper {
        padding: 15px 0;
    }
    
    .ma-heading-style_1 {
        padding: 25px 20px;
    }
    
    .ma-title {
        font-size: 28px;
    }
    
    .ma-heading-style_1 .ma-title,
    .ma-heading-style_2 .ma-title,
    .ma-heading-style_3 .ma-title,
    .ma-heading-style_4 .ma-title {
        font-size: 30px;
    }
    
    .ma-subtitle {
        font-size: 14px;
    }
    
    .ma-description {
        font-size: 15px;
    }
    
    .ma-background-text {
        font-size: 80px;
    }
    
    .ma-heading-style_3 .ma-title::after {
        width: 40px;
        height: 3px;
    }
}

@media (max-width: 480px) {
    .ma-title {
        font-size: 24px;
    }
    
    .ma-heading-style_1 .ma-title,
    .ma-heading-style_2 .ma-title,
    .ma-heading-style_3 .ma-title,
    .ma-heading-style_4 .ma-title {
        font-size: 26px;
    }
    
    .ma-subtitle {
        font-size: 13px;
    }
    
    .ma-description {
        font-size: 14px;
    }
    
    .ma-background-text {
        font-size: 60px;
    }
    
    .ma-heading-style_1 {
        padding: 20px 15px;
    }
    
    .ma-heading-style_2 {
        padding: 30px 15px;
    }
}

/* Performance Optimizations */
.ma-heading-wrapper * {
    will-change: auto;
}

.ma-background-text {
    transform: translateX(-50%) translateZ(0);
    backface-visibility: hidden;
}

/* Accessibility */
.ma-heading-wrapper:focus-within {
    outline: 2px solid #4CAF50;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .ma-heading-wrapper * {
        transition: none !important;
        animation: none !important;
    }
}