/* SEO Rotation System Styles */
.seo-dynamic-content {
    margin: 1.5rem 0;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, rgba(139,0,0,0.08) 0%, rgba(220,53,69,0.12) 100%);
    border-radius: 12px;
    border-left: 4px solid #dc2626;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #1a1a1a;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(220,53,69,0.2);
}

.seo-dynamic-content.services-seo {
    background: linear-gradient(135deg, rgba(139,0,0,0.12) 0%, rgba(220,53,69,0.18) 100%);
    border-left-color: #dc2626;
    border: 1px solid rgba(220,53,69,0.3);
    margin-bottom: 2rem;
    text-align: center;
    font-size: 1.15rem;
    font-weight: 600;
    color: #000;
}

.seo-dynamic-content.technology-seo {
    background: linear-gradient(135deg, rgba(255,193,7,0.15) 0%, rgba(220,53,69,0.1) 100%);
    border-left-color: #ffc107;
    border: 1px solid rgba(255,193,7,0.3);
    margin: 2rem 0;
    text-align: center;
    font-weight: 600;
    color: #2d3748;
}

.seo-dynamic-content.regional-seo {
    background: linear-gradient(135deg, rgba(220,53,69,0.15) 0%, rgba(139,0,0,0.1) 100%);
    border-left-color: #dc3545;
    border: 1px solid rgba(220,53,69,0.4);
    margin: 2rem 0;
    text-align: center;
    font-weight: 600;
    color: #1a202c;
    box-shadow: 0 6px 16px rgba(220,53,69,0.2);
}

.seo-dynamic-content.expertise-seo {
    background: linear-gradient(135deg, rgba(102,16,242,0.12) 0%, rgba(139,0,0,0.08) 100%);
    border-left-color: #6610f2;
    border: 1px solid rgba(102,16,242,0.25);
    margin: 2rem auto;
    text-align: center;
    max-width: 800px;
    font-style: italic;
    font-weight: 600;
    color: #2d3748;
}

.seo-dynamic-content p {
    margin: 0;
    font-weight: 500;
}

/* Hide containers when empty */
.seo-dynamic-content:empty {
    display: none !important;
}

/* Expandable About Content - Initial State */
.expandable-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.expandable-content.expanded {
    max-height: none;
}

.content-level {
    display: none;
    margin: 1rem 0;
}

.content-level.visible {
    display: block;
}

.seo-sentence {
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.4s ease;
    margin: 0.5rem 0;
    line-height: 1.6;
}

.content-level.visible .seo-sentence {
    opacity: 1;
    transform: translateX(0);
}

/* Single Dynamic View More Button */
.view-more-container {
    display: none;
    justify-content: center;
    margin: 1.5rem 0;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease;
}

.view-more-container.visible {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.view-more-btn {
    background: linear-gradient(135deg, #DC3545, #B02A37);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
    position: relative;
    overflow: hidden;
    text-transform: none;
    letter-spacing: 0.3px;
}

.view-more-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s;
}

.view-more-btn:hover::before {
    left: 100%;
}

.view-more-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(220, 53, 69, 0.4);
    background: linear-gradient(135deg, #B02A37, #8B1E2B);
}

.view-more-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 3px 12px rgba(220, 53, 69, 0.5);
}

.view-more-text {
    margin-right: 0.6rem;
    display: inline-block;
    transition: margin-right 0.3s ease;
}

.view-more-icon {
    transition: transform 0.3s ease;
    font-size: 0.85em;
}

.view-more-btn:hover .view-more-icon {
    transform: translateY(3px);
}

.view-more-btn:hover .view-more-text {
    margin-right: 0.8rem;
}

/* Enhanced SEO Content Visibility */
.seo-dynamic-content:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

/* Better contrast and readability */
.seo-dynamic-content {
    position: relative;
    z-index: 2;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.seo-dynamic-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 12px;
    z-index: -1;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .seo-dynamic-content {
        font-size: 1rem;
        padding: 1rem;
        margin: 1rem 0;
    }
    
    .seo-dynamic-content.services-seo {
        font-size: 1.05rem;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .seo-dynamic-content {
        font-size: 0.9rem;
        padding: 0.6rem;
    }
    
    .level-view-more .view-more-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }
}