/* ===== ENHANCED MARKDOWN STYLING FOR SERVICE DESCRIPTIONS ===== */

/* Service Description Container - Enhanced Typography */
.enhanced-service-description {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

/* Target Audience Line (######*text*) - Subtle and Elegant */
.enhanced-service-description h6 {
    color: var(--svss-yellow) !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    font-style: italic;
    text-align: center;
    margin: 0 0 1.5rem 0 !important;
    padding: 0.5rem 1rem;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 20px;
    border: 1px solid rgba(255, 215, 0, 0.2);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Arial', sans-serif;
}

/* Main Section Headings (Problem, Solution, Result) */
.enhanced-service-description h5 {
    font-size: 1.3rem !important;
    font-weight: 700 !important;
    margin: 2rem 0 1rem 0 !important;
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 0 10px currentColor;
    transition: all 0.3s ease;
}

/* Problem Section - Warning/Alert Styling */
.enhanced-service-description h5:contains("Problem") {
    color: var(--svss-orange) !important;
    background: linear-gradient(135deg, rgba(255, 165, 0, 0.15), rgba(255, 165, 0, 0.05));
    border-left: 4px solid var(--svss-orange);
    box-shadow: 0 0 15px rgba(255, 165, 0, 0.2);
}

/* Solution Section - Primary Brand Styling */
.enhanced-service-description h5:contains("Solution") {
    color: var(--svss-teal) !important;
    background: linear-gradient(135deg, rgba(64, 224, 208, 0.15), rgba(64, 224, 208, 0.05));
    border-left: 4px solid var(--svss-teal);
    box-shadow: 0 0 15px rgba(64, 224, 208, 0.2);
}

/* Result Section - Success/Positive Styling */
.enhanced-service-description h5:contains("Result") {
    color: var(--svss-green) !important;
    background: linear-gradient(135deg, rgba(144, 238, 144, 0.15), rgba(144, 238, 144, 0.05));
    border-left: 4px solid var(--svss-green);
    box-shadow: 0 0 15px rgba(144, 238, 144, 0.2);
}

/* Alternative approach using nth-child if :contains doesn't work */
.enhanced-service-description h5:nth-of-type(1) {
    color: var(--svss-orange) !important;
    background: linear-gradient(135deg, rgba(255, 165, 0, 0.15), rgba(255, 165, 0, 0.05));
    border-left: 4px solid var(--svss-orange);
    box-shadow: 0 0 15px rgba(255, 165, 0, 0.2);
}

.enhanced-service-description h5:nth-of-type(2) {
    color: var(--svss-teal) !important;
    background: linear-gradient(135deg, rgba(64, 224, 208, 0.15), rgba(64, 224, 208, 0.05));
    border-left: 4px solid var(--svss-teal);
    box-shadow: 0 0 15px rgba(64, 224, 208, 0.2);
}

.enhanced-service-description h5:nth-of-type(3) {
    color: var(--svss-green) !important;
    background: linear-gradient(135deg, rgba(144, 238, 144, 0.15), rgba(144, 238, 144, 0.05));
    border-left: 4px solid var(--svss-green);
    box-shadow: 0 0 15px rgba(144, 238, 144, 0.2);
}

/* Hover Effects for Headings */
.enhanced-service-description h5:hover {
    transform: translateX(5px);
    filter: brightness(1.1);
}

/* Icons for Each Section (Optional Enhancement) */
.enhanced-service-description h5:nth-of-type(1)::before {
    content: "⚠️ ";
    margin-right: 0.5rem;
    filter: grayscale(1);
}

.enhanced-service-description h5:nth-of-type(2)::before {
    content: "🔧 ";
    margin-right: 0.5rem;
    filter: grayscale(1);
}

.enhanced-service-description h5:nth-of-type(3)::before {
    content: "✅ ";
    margin-right: 0.5rem;
    filter: grayscale(1);
}

/* Paragraphs under each section */
.enhanced-service-description h5 + p {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 1rem 0 1.5rem 0;
    padding-left: 1.25rem;
    position: relative;
}

/* Subtle left border for paragraphs */
.enhanced-service-description h5 + p::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 1px;
}

/* Enhanced Typography for Better Readability */
.enhanced-service-description strong {
    color: var(--svss-yellow) !important;
    font-weight: 700;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.3);
}

.enhanced-service-description em {
    color: var(--svss-teal) !important;
    font-style: italic;
    font-weight: 500;
}

/* Improve List Styling */
.enhanced-service-description ul {
    list-style: none;
    padding-left: 0;
    margin: 1.5rem 0;
}

.enhanced-service-description li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 0.75rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.enhanced-service-description li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--svss-teal);
    font-weight: bold;
    font-size: 1.2rem;
}

/* Card Hover Effects - Enhanced */
.enhanced-service-card:hover .enhanced-service-description h5 {
    transform: translateX(3px);
}

.enhanced-service-card:hover .enhanced-service-description h6 {
    background: rgba(255, 215, 0, 0.2);
    border-color: rgba(255, 215, 0, 0.4);
    transform: scale(1.02);
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .enhanced-service-description h5 {
        font-size: 1.1rem !important;
        padding: 0.5rem 1rem;
        margin: 1.5rem 0 0.75rem 0 !important;
    }
    
    .enhanced-service-description h6 {
        font-size: 0.85rem !important;
        padding: 0.4rem 0.8rem;
    }
    
    .enhanced-service-description h5 + p {
        font-size: 1rem;
        padding-left: 1rem;
    }
}

/* Animation on Card Load */
.enhanced-service-description h5,
.enhanced-service-description h6 {
    animation: slideInLeft 0.6s ease-out;
    animation-fill-mode: both;
}

.enhanced-service-description h5:nth-of-type(1) { animation-delay: 0.1s; }
.enhanced-service-description h5:nth-of-type(2) { animation-delay: 0.2s; }
.enhanced-service-description h5:nth-of-type(3) { animation-delay: 0.3s; }

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Alternative Color Scheme (more subtle) */
/*
.enhanced-service-description h5:nth-of-type(1) {
    color: var(--svss-red) !important;
    background: linear-gradient(135deg, rgba(255, 68, 68, 0.15), rgba(255, 68, 68, 0.05));
    border-left: 4px solid var(--svss-red);
}

.enhanced-service-description h5:nth-of-type(2) {
    color: var(--svss-teal) !important;
    background: linear-gradient(135deg, rgba(64, 224, 208, 0.15), rgba(64, 224, 208, 0.05));
    border-left: 4px solid var(--svss-teal);
}

.enhanced-service-description h5:nth-of-type(3) {
    color: var(--svss-green) !important;
    background: linear-gradient(135deg, rgba(144, 238, 144, 0.15), rgba(144, 238, 144, 0.05));
    border-left: 4px solid var(--svss-green);
}
*/