/* Reusable components */

/* Service Cards */
.service-card {
    background: var(--background-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    transition: border-color 0.3s ease, transform 0.3s ease;
    text-align: center;
    box-shadow: none;
}

.service-card:hover {
    border-color: var(--primary-color) !important;
    transform: translateY(-2px);
    box-shadow: none !important;
    filter: none !important;
    text-shadow: none !important;
}

.service-card .service-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto var(--space-4);
    color: var(--primary-color);
}

.service-card h3 {
    font-size: var(--text-xl);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
    margin-bottom: var(--space-3);
}

.service-card p {
    color: var(--text-secondary);
    margin-bottom: var(--space-4);
    line-height: var(--leading-relaxed);
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary-color);
    color: black;
    font-weight: 600;
}

.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(82, 191, 64, 0.2);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: black;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(82, 191, 64, 0.2);
}

.btn-urgent {
    position: relative;
    overflow: hidden;
}

.btn-submit {
    background: var(--primary-color);
    color: black;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-submit:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(82, 191, 64, 0.2);
}

.btn-submit:disabled {
    background: var(--text-light);
    cursor: not-allowed;
    transform: none;
}

/* Floating CTA Button */
.floating-cta {
    position: fixed;
    bottom: var(--space-8);
    right: var(--space-8);
    z-index: 1000;
    opacity: 0;
    transform: translateY(100px);
    transition: all 0.3s ease;
}

.floating-cta.visible {
    opacity: 1;
    transform: translateY(0);
}

.btn-floating {
    background: var(--primary-color);
    color: black;
    border-radius: var(--radius-full);
    box-shadow: 0 8px 20px rgba(82, 191, 64, 0.25);
    padding: var(--space-4) var(--space-6);
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-weight: var(--font-bold);
    font-size: var(--text-sm);
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-floating:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: var(--shadow-xl);
}

.btn-floating svg {
    width: 18px;
    height: 18px;
}

/* Mobile-specific floating button styles */
@media (max-width: 480px) {
    .btn-floating {
        width: 56px;
        height: 56px;
        padding: 0;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        transition: width 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
                    padding 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
                    box-shadow 0.3s ease;
    }
    
    /* Faster collapse transition */
    .btn-floating.collapsing {
        transition: width 0.2s ease-out,
                    padding 0.2s ease-out !important;
    }
    
    .btn-floating .btn-text {
        opacity: 0;
        width: 0;
        margin-left: 0;
        white-space: nowrap;
        transition: opacity 0.3s ease 0s,
                    width 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) 0s,
                    margin-left 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) 0s;
    }
    
    .btn-floating.collapsing .btn-text {
        transition: opacity 0.15s ease-out,
                    width 0.2s ease-out,
                    margin-left 0.2s ease-out !important;
    }
    
    .btn-floating .phone-icon {
        width: 24px;
        height: 24px;
        flex-shrink: 0;
        margin: 0;
        transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    }
    
    /* Expanded state */
    .floating-cta.expanded .btn-floating {
        width: auto;
        min-width: 200px;
        padding: var(--space-3) var(--space-5);
    }
    
    .floating-cta.expanded .btn-floating .btn-text {
        opacity: 1;
        width: auto;
        margin-left: var(--space-2);
        transition: opacity 0.4s ease 0.1s,
                    width 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) 0s,
                    margin-left 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) 0s;
    }
    
    .floating-cta.expanded .btn-floating .phone-icon {
        transform: scale(0.85) translateX(-2px);
    }
    
    /* Pulse animation for initial state */
    @keyframes pulse {
        0% {
            box-shadow: 0 0 0 0 rgba(82, 191, 64, 0.25);
        }
        70% {
            box-shadow: 0 0 0 10px rgba(82, 191, 64, 0);
        }
        100% {
            box-shadow: 0 0 0 0 rgba(82, 191, 64, 0);
        }
    }
    
    .btn-floating[data-expanded="false"] {
        animation: pulse 2s infinite;
    }
}

/* Cards with enhanced glassmorphism */
.service-card {
    background: linear-gradient(145deg, 
        rgba(255, 255, 255, 0.12) 0%, 
        rgba(255, 255, 255, 0.08) 50%, 
        rgba(255, 255, 255, 0.04) 100%);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    padding: var(--space-8);
    border-radius: var(--radius-2xl);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, 
        rgba(82, 191, 64, 0.08) 0%, 
        rgba(82, 191, 64, 0.04) 50%, 
        rgba(82, 191, 64, 0.02) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
    border-radius: var(--radius-2xl);
}

.service-card:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 
        0 20px 40px rgba(82, 191, 64, 0.15),
        0 8px 24px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border-color: rgba(82, 191, 64, 0.2);
    background: linear-gradient(145deg, 
        rgba(255, 255, 255, 0.18) 0%, 
        rgba(255, 255, 255, 0.12) 50%, 
        rgba(255, 255, 255, 0.08) 100%);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    width: 4rem;
    height: 4rem;
    margin-bottom: var(--space-6);
    background: transparent;
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.service-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(45deg);
    transition: transform 0.6s ease;
}

.service-icon svg {
    width: 60%;
    height: 60%;
    stroke: var(--primary-color);
    stroke-width: 2.5;
}

.service-card:hover .service-icon {
    transform: translateY(-4px) scale(1.1) rotate(5deg);
}

.service-card:hover .service-icon::before {
    transform: translateX(100%) rotate(45deg);
}

.service-card h3 {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: var(--font-semibold);
    margin-bottom: var(--space-4);
    color: var(--text-primary);
    line-height: var(--leading-snug);
    letter-spacing: var(--tracking-normal);
}

.service-card p {
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: var(--font-normal);
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
    letter-spacing: var(--tracking-normal);
}

/* Service detail cards */
.service-detail {
    margin-bottom: 3rem;
    background: rgba(26, 26, 26, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(82, 191, 64, 0.15);
}

.service-detail:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 16px 64px rgba(82, 191, 64, 0.1);
    border-color: rgba(82, 191, 64, 0.25);
}

.service-detail-header {
    padding: 2rem;
    background: rgba(82, 191, 64, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    border-bottom: 1px solid rgba(82, 191, 64, 0.2);
    text-align: center;
}

.service-detail-content {
    width: 100%;
    padding: 2rem;
}

.service-detail .service-icon {
    width: 4rem;
    height: 4rem;
    margin-bottom: 1.5rem;
    background: transparent;
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
    transition: all 0.3s ease;
}

.service-detail .service-icon svg {
    width: 60%;
    height: 60%;
    stroke: var(--primary-color);
    stroke-width: 2.5;
}

.service-detail h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.service-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.service-features,
.service-benefits {
    margin-bottom: 2rem;
}

.service-features h3,
.service-benefits h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.service-features ul,
.service-benefits ul {
    list-style: none;
    padding: 0;
}

.service-features li,
.service-benefits li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 2rem;
    color: var(--text-secondary);
}

.service-features li::before,
.service-benefits li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* Case study cards */
.case-study-card {
    background: linear-gradient(145deg, 
        rgba(255, 255, 255, 0.12) 0%, 
        rgba(255, 255, 255, 0.08) 50%, 
        rgba(255, 255, 255, 0.04) 100%);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.case-study-card:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 0 20px 40px rgba(82, 191, 64, 0.15);
    border-color: rgba(82, 191, 64, 0.2);
}

.case-study-header {
    padding: 2rem;
    background: rgba(82, 191, 64, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    border-bottom: 1px solid rgba(82, 191, 64, 0.2);
}

.case-study-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.case-study-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    opacity: 0.9;
}

.case-study-content {
    padding: 2rem;
}

.case-study-content p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.case-study-results {
    margin-bottom: 1.5rem;
}

.case-study-results h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.result-items {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.result-item {
    background: var(--background-light);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.case-study-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.tag:focus,
.tag:focus-visible {
    outline: none;
}

/* Process steps */
.process-step {
    text-align: center;
    padding: 2rem;
    background: var(--background-card);
    border-radius: 1rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.process-step h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.process-step p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Statistics */
.stat-item {
    text-align: center;
}

.stat-number {
    font-family: var(--font-display);
    font-size: var(--text-5xl);
    font-weight: var(--font-extrabold);
    color: var(--primary-color);
    margin-bottom: var(--space-2);
    line-height: var(--leading-none);
    letter-spacing: var(--tracking-tight);
}

.stat-label {
    font-family: var(--font-body);
    font-size: var(--text-lg);
    color: var(--text-secondary);
    font-weight: var(--font-medium);
    line-height: var(--leading-normal);
    letter-spacing: var(--tracking-normal);
}

/* Contact information */
.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.contact-icon svg {
    width: 24px;
    height: 24px;
    stroke: white;
}

.contact-item-content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.contact-item-content p {
    color: var(--text-secondary);
    margin: 0;
}

/* Benefits */
.benefit-item {
    background: var(--background-card);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.benefit-icon {
    width: 3rem;
    height: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
}

.benefit-icon svg {
    width: 100%;
    height: 100%;
    stroke: var(--primary-color);
}

.benefit-item h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.benefit-item p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Steps for consultation */
.step {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.step-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.step-content p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Testimonials */
.testimonial {
    background: var(--background-card);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-sm);
}

.testimonial p {
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.testimonial-author {
    font-weight: 600;
    color: var(--text-primary);
}

/* Guarantee box */
.consultation-guarantee {
    background: var(--background-light);
    padding: 2rem;
    border-radius: 1rem;
    border-left: 4px solid var(--primary-color);
}

.consultation-guarantee h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.consultation-guarantee ul {
    list-style: none;
    padding: 0;
}

.consultation-guarantee li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
}

/* Certifications Section */
.certifications {
    padding: var(--space-16) 0;
    background: var(--background);
    border-top: 1px solid var(--border-color);
}

.certifications-container {
    text-align: center;
}

.certifications-title {
    font-size: var(--text-3xl);
    color: var(--text-primary);
    margin-bottom: var(--space-2);
    font-weight: 600;
}

.certifications-subtitle {
    color: var(--text-secondary);
    font-size: var(--text-lg);
    margin-bottom: var(--space-8);
}

.certifications-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-8);
    flex-wrap: wrap;
}

.certification-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    background: var(--background-card);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    width: 280px;
    min-height: 320px;
}

.certification-badge:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.certification-badge img {
    width: 200px;
    height: 200px;
    object-fit: contain;
    margin-bottom: var(--space-4);
}

.certification-info h3 {
    font-size: var(--text-lg);
    color: var(--text-primary);
    margin-bottom: var(--space-1);
}

.certification-info p {
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

/* Loading states */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: loading-shimmer 2s infinite;
}

@keyframes loading-shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Error states */
.error-message {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--error-color);
    color: var(--error-color);
    padding: var(--space-4);
    border-radius: var(--radius-md);
    margin: var(--space-4) 0;
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.success-message {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid var(--success-color);
    color: var(--success-color);
    padding: var(--space-4);
    border-radius: var(--radius-md);
    margin: var(--space-4) 0;
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

/* Enhanced button states */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.btn.loading {
    position: relative;
    color: transparent;
}

.btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: button-spinner 1s linear infinite;
}

@keyframes button-spinner {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Enhanced form feedback */
.form-field {
    position: relative;
    margin-bottom: var(--space-4);
}

.form-field input,
.form-field textarea {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--background-card);
    color: var(--text-primary);
    font-size: var(--text-base);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--brand-purple);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.form-field.error input,
.form-field.error textarea {
    border-color: var(--error-color);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-field.success input,
.form-field.success textarea {
    border-color: var(--success-color);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.field-error {
    color: var(--error-color);
    font-size: var(--text-sm);
    margin-top: var(--space-1);
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.field-success {
    color: var(--success-color);
    font-size: var(--text-sm);
    margin-top: var(--space-1);
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.field-help {
    color: var(--text-light);
    font-size: var(--text-sm);
    margin-top: var(--space-1);
}

/* Notification system */
.notification {
    position: fixed;
    top: var(--space-4);
    right: var(--space-4);
    max-width: 400px;
    padding: var(--space-4);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    z-index: 9999;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    background: var(--success-color);
    color: white;
}

.notification.error {
    background: var(--error-color);
    color: white;
}

.notification.info {
    background: var(--info-color);
    color: white;
}

/* Services section styling */
.services-overview {
    padding: var(--space-20) 0;
}

.services-header {
    text-align: center;
    margin-bottom: var(--space-16);
}

.services-subtitle {
    font-size: var(--text-xl);
    color: white;
    max-width: 800px;
    margin: 0 auto var(--space-4);
    line-height: var(--leading-relaxed);
    font-weight: var(--font-normal);
    opacity: 0.9;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-8);
}

.services-overview .section-title {
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Enhanced service cards with better interaction feedback */
.service-card {
    position: relative;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.service-card::before {
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
    transform: translateY(-12px) scale(1.03);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Enhanced CTA Section */
.cta {
    padding: var(--space-20) 0;
    margin: var(--space-20) 0;
    border-radius: var(--radius-3xl);
}

.cta-content {
    text-align: center;
    color: white;
}


.cta h2 {
    font-size: var(--text-5xl);
    font-weight: var(--font-extrabold);
    margin-bottom: var(--space-4);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.cta p {
    font-size: var(--text-xl);
    margin-bottom: var(--space-8);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    line-height: var(--leading-relaxed);
}

.cta-buttons {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

/* CTA section button styling */
.cta .btn-primary {
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    color: #1e293b;
    padding: var(--space-4) var(--space-8);
    border-radius: var(--radius-2xl);
    text-decoration: none;
    font-weight: var(--font-bold);
    font-size: var(--text-lg);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
    display: inline-block;
    margin-top: var(--space-4);
}

.cta .btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        0 12px 48px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.btn-cta-primary {
    background: #52bf40;
    color: white;
    padding: var(--space-4) var(--space-8);
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: var(--font-bold);
    font-size: var(--text-lg);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.btn-cta-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.btn-cta-primary:hover::before {
    left: 100%;
}

.btn-cta-primary:hover {
    background: #52bf40;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(82, 191, 64, 0.3);
}

.btn-text {
    font-size: var(--text-lg);
    margin-bottom: var(--space-1);
}

.btn-urgency {
    font-size: var(--text-sm);
    color: #ef4444;
    font-weight: var(--font-semibold);
}

.btn-cta-secondary {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-xl);
    text-decoration: none;
    font-weight: var(--font-semibold);
    font-size: var(--text-base);
    display: flex;
    align-items: center;
    gap: var(--space-2);
    transition: all 0.3s ease;
}

.btn-cta-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.btn-cta-secondary svg {
    width: 18px;
    height: 18px;
    stroke: white;
}

/* Enhanced Case Studies Hero */
.case-studies-hero {
    padding: var(--space-20) 0;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    color: white;
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    margin-bottom: var(--space-6);
    backdrop-filter: blur(10px);
}

.hero-badge svg {
    width: 16px;
    height: 16px;
    stroke: white;
}

.case-studies-hero h1 {
    font-size: var(--text-5xl);
    font-weight: var(--font-extrabold);
    margin-bottom: var(--space-4);
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.case-studies-hero p {
    font-size: var(--text-xl);
    color: white;
    max-width: 700px;
    margin: 0 auto;
    line-height: var(--leading-relaxed);
    opacity: 0.9;
}

.highlight {
    color: #fbbf24;
    font-weight: var(--font-bold);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Enhanced Case Study Cards */
.case-study-card {
    background: linear-gradient(145deg, 
        rgba(255, 255, 255, 0.12) 0%, 
        rgba(255, 255, 255, 0.08) 50%, 
        rgba(255, 255, 255, 0.04) 100%);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.case-study-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--success-color), var(--primary-color), var(--success-color));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.case-study-card:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 
        0 20px 40px rgba(82, 191, 64, 0.15),
        0 8px 24px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border-color: rgba(82, 191, 64, 0.2);
}

.case-study-card:hover::before {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cta h2 {
        font-size: var(--text-3xl);
    }
    
    .cta p {
        font-size: var(--text-lg);
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .btn-cta-primary {
        width: 100%;
        max-width: 300px;
    }
    
    .certifications-grid {
        gap: var(--space-6);
        flex-direction: column;
    }
    
    .certification-badge {
        width: 100%;
        max-width: none;
        margin: 0;
        padding: var(--space-8) var(--space-6);
        min-height: auto;
    }
    
    .certification-badge img {
        width: 150px;
        height: 150px;
    }
    
    .notification {
        left: var(--space-4);
        right: var(--space-4);
        max-width: none;
    }
}

/* Blog Components */
.blog-hero {
    background: linear-gradient(135deg, var(--primary-gradient-start) 0%, var(--primary-gradient-end) 100%);
    padding: var(--space-20) 0 var(--space-16);
    text-align: center;
}

.blog-hero h1 {
    font-size: var(--text-4xl);
    margin-bottom: var(--space-4);
}

.blog-hero p {
    font-size: var(--text-lg);
    color: var(--text-secondary);
}

.blog-content {
    padding: var(--space-20) 0 var(--space-16);
}

.blog-content .container {
    max-width: 1400px;
}

.blog-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: var(--space-8);
    align-items: start;
}

.blog-posts {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
    min-width: 0;
}

.blog-card {
    background: var(--background-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    transition: all 0.3s ease;
    cursor: pointer;
}

.blog-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.blog-card h2 {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-3);
    color: var(--text-primary);
    line-height: var(--leading-tight);
}

.blog-card .blog-meta {
    display: flex;
    gap: var(--space-4);
    margin-bottom: var(--space-3);
    font-size: var(--text-sm);
    color: var(--text-muted);
}

.blog-card .blog-excerpt {
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-4);
    text-align: justify;
}

.blog-card .blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

/* Pagination Controls */
.pagination-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-4);
    margin-top: var(--space-8);
    padding: var(--space-6) 0;
    border-top: 1px solid var(--border-color);
}

.pagination-wrapper {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    flex-wrap: nowrap;
    justify-content: center;
}

.pagination-pages {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.pagination-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    background: rgba(82, 191, 64, 0.1);
    border: 1px solid rgba(82, 191, 64, 0.3);
    border-radius: var(--radius-lg);
    padding: var(--space-2) var(--space-3);
    color: #52bf40;
    cursor: pointer;
    font-size: var(--text-sm);
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 40px;
    height: 40px;
}

.pagination-btn:hover:not(:disabled) {
    background: rgba(82, 191, 64, 0.2);
    border-color: rgba(82, 191, 64, 0.5);
    transform: translateY(-1px);
}

.pagination-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.pagination-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* First and Last buttons - icon only */
.pagination-first,
.pagination-last {
    padding: var(--space-2);
    min-width: 40px;
}

.pagination-page {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--background-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    cursor: pointer;
    font-size: var(--text-sm);
    font-weight: 500;
    transition: all 0.3s ease;
}

.pagination-page:hover {
    background: rgba(82, 191, 64, 0.1);
    border-color: rgba(82, 191, 64, 0.3);
}

.pagination-page.active {
    background: linear-gradient(135deg, #52bf40, #52bf40);
    border-color: #52bf40;
    color: white;
    box-shadow: 0 4px 12px rgba(82, 191, 64, 0.3);
}

.pagination-ellipsis {
    color: var(--text-muted);
    padding: 0 var(--space-2);
    font-size: var(--text-sm);
}

.pagination-info {
    color: var(--text-muted);
    font-size: var(--text-sm);
    text-align: center;
}

.blog-tag {
    background: rgba(82, 191, 64, 0.1);
    color: #52bf40;
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    font-weight: 500;
    border: 1px solid rgba(82, 191, 64, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.blog-tag:hover {
    background: rgba(82, 191, 64, 0.2);
    border-color: rgba(82, 191, 64, 0.4);
    transform: translateY(-1px);
}


/* Blog Sidebar */
.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
    position: sticky;
    top: calc(80px + var(--space-4));
    height: calc(100vh - 80px - var(--space-8));
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: var(--space-2);
}

.sidebar-section {
    background: var(--background-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    flex-shrink: 0;
}

.sidebar-section h3 {
    font-size: var(--text-lg);
    margin-bottom: var(--space-3);
    color: var(--text-primary);
    font-weight: var(--font-semibold);
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.tag-filter {
    background: rgba(82, 191, 64, 0.1);
    color: #52bf40;
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    font-weight: 500;
    border: 1px solid rgba(82, 191, 64, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.tag-filter:hover {
    background: rgba(82, 191, 64, 0.2);
    border-color: rgba(82, 191, 64, 0.4);
    transform: translateY(-1px);
}

.tag-filter.active {
    background: rgba(82, 191, 64, 0.25);
    color: #52bf40;
    border-color: #52bf40;
    font-weight: 600;
}

.tag-filter:focus,
.tag-filter:focus-visible {
    outline: none;
}

.recent-posts ul {
    list-style: none;
    padding: 0;
}

.recent-posts li {
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--border-color);
}

.recent-posts li:last-child {
    border-bottom: none;
}

.recent-posts a {
    color: var(--text-secondary);
    text-decoration: none;
    display: block;
    transition: color 0.2s ease;
}

.recent-posts a:hover {
    color: var(--primary-color);
}

.recent-posts .post-date {
    font-size: var(--text-xs);
    color: var(--text-muted);
    display: block;
    margin-top: var(--space-1);
}

.newsletter-section p {
    color: var(--text-secondary);
    margin-bottom: var(--space-4);
    line-height: var(--leading-relaxed);
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.newsletter-form input[type="email"] {
    padding: var(--space-3);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--background-secondary);
    color: var(--text-primary);
    font-size: var(--text-base);
}

.newsletter-form input[type="email"]:focus {
    outline: none;
    border-color: var(--primary-color);
}

.newsletter-section small {
    display: block;
    margin-top: var(--space-2);
    color: var(--text-muted);
    font-size: var(--text-xs);
}

/* Cloudflare Turnstile CAPTCHA Styling */
.cf-turnstile {
    margin: var(--space-3) 0;
    min-height: 65px;
    display: flex;
    justify-content: center;
}

.newsletter-form .cf-turnstile {
    margin: var(--space-4) 0;
}

.consultation-form .cf-turnstile {
    display: flex;
    justify-content: center;
}

/* Dark theme override for Turnstile */
.cf-turnstile iframe {
    border-radius: var(--radius-md) !important;
}

/* Ensure proper spacing when CAPTCHA is loading */
.cf-turnstile:empty {
    background: rgba(82, 191, 64, 0.05);
    border: 1px dashed rgba(82, 191, 64, 0.2);
    border-radius: var(--radius-md);
    position: relative;
}

.cf-turnstile:empty::after {
    content: "Loading security verification...";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--text-muted);
    font-size: var(--text-sm);
}

/* Blog Post View */
.blog-post-view {
    padding: var(--space-16) 0;
}

.blog-post-view .container {
    max-width: 1400px;
}

.post-header {
    margin-bottom: var(--space-10);
}

.back-to-blog {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: var(--space-6);
    font-family: inherit;
}

.back-to-blog:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.post-header h1 {
    font-size: var(--text-4xl);
    margin-bottom: var(--space-4);
    line-height: var(--leading-tight);
    color: var(--text-secondary);
}

.post-meta {
    display: flex;
    gap: var(--space-6);
    color: var(--text-muted);
    margin-bottom: var(--space-4);
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.post-main {
    flex: 1;
    min-width: 0;
}

.post-content {
    max-width: none;
    margin: 0;
    font-size: var(--text-lg);
    line-height: var(--leading-relaxed);
    word-wrap: break-word;
    overflow-wrap: break-word;
    text-align: justify;
}

.post-content h2 {
    font-size: var(--text-3xl);
    margin-top: var(--space-10);
    margin-bottom: var(--space-4);
    color: var(--text-secondary);
}

.post-content h3 {
    font-size: var(--text-2xl);
    margin-top: var(--space-8);
    margin-bottom: var(--space-3);
    color: var(--text-secondary);
}

.post-content p {
    margin-bottom: var(--space-4);
    color: var(--text-secondary);
}

.post-content pre {
    background: var(--background-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--space-4);
    overflow-x: auto;
    margin: var(--space-6) 0;
}

.post-content code {
    background: var(--background-secondary);
    padding: var(--space-1);
    border-radius: var(--radius-sm);
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.post-content pre code {
    background: none;
    padding: 0;
}

.post-content ul, .post-content ol {
    margin: var(--space-4) 0;
    padding-left: var(--space-8);
}

.post-content li {
    margin-bottom: var(--space-2);
    color: var(--text-secondary);
}

.post-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: var(--space-4);
    margin: var(--space-6) 0;
    font-style: italic;
    color: var(--text-muted);
}

.post-content a {
    color: #52bf40;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.post-content a:hover {
    color: #52bf40;
    text-decoration: underline;
}

.post-content a:visited {
    color: #15803d;
}

/* Ensure pre elements can contain positioned elements */
.post-content pre {
    position: relative;
}

/* Ensure pre elements can contain positioned elements */
.post-content pre {
    position: relative;
}

.loading-spinner {
    text-align: center;
    padding: var(--space-16);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto var(--space-4);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Custom scrollbar styling for sidebar */
.blog-sidebar::-webkit-scrollbar {
    width: 6px;
}

.blog-sidebar::-webkit-scrollbar-track {
    background: var(--background-secondary);
    border-radius: var(--radius-full);
}

.blog-sidebar::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: var(--radius-full);
    transition: background 0.2s ease;
}

.blog-sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Firefox scrollbar styling */
.blog-sidebar {
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) var(--background-secondary);
}

/* Responsive */
@media (max-width: 1200px) {
    .blog-layout {
        grid-template-columns: 1fr;
    }
    
    .blog-sidebar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-6);
        position: static;
        height: auto;
        overflow: visible;
        padding-right: 0;
    }
    
    .newsletter-section {
        grid-column: span 2;
    }
}

/* Mobile-first approach: Stack sidebar sections vertically on mobile */
@media (max-width: 480px) {
    .blog-sidebar {
        grid-template-columns: 1fr !important;
        gap: var(--space-4);
        margin-top: var(--space-6);
        padding: 0; /* Remove sidebar padding to align with blog cards */
        /* Ensure sidebar aligns with main content */
        margin-left: 0;
        margin-right: 0;
    }
    
    .newsletter-section {
        grid-column: span 1;
    }
    
    .sidebar-section {
        padding: var(--space-4); /* Match blog card mobile padding */
        /* Ensure full width alignment */
        margin-left: 0;
        margin-right: 0;
        width: 100%;
        box-sizing: border-box;
    }
    
    .recent-posts a {
        font-size: var(--text-sm);
        line-height: 1.4;
        display: block;
        word-wrap: break-word;
    }
    
    .sidebar-section h3 {
        font-size: var(--text-lg);
        margin-bottom: var(--space-3);
    }
    
    /* Override any container padding that might cause misalignment */
    .blog-content .container {
        padding: 0 var(--space-4) !important;
    }
    
    /* Ensure blog layout has no extra padding on mobile */
    .blog-layout {
        gap: var(--space-6);
        padding: 0;
        margin: 0;
    }
    
    /* Make sure blog cards and sidebar sections have identical width treatment */
    .blog-card,
    .sidebar-section {
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Pagination mobile styles */
    .pagination-wrapper {
        /* Keep buttons in a single row on mobile */
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 4px;
        justify-content: center;
    }

    .pagination-btn {
        padding: 4px;
        font-size: 11px;
        min-width: 28px;
        height: 28px;
    }

    .pagination-btn svg {
        width: 12px;
        height: 12px;
    }

    .pagination-page {
        width: 28px;
        height: 28px;
        font-size: 11px;
        padding: 4px;
    }

    .pagination-pages {
        gap: 4px;
    }

    .pagination-info {
        font-size: var(--text-xs);
        width: 100%;
        margin-top: var(--space-2);
    }
}

@media (max-width: 768px) {
    .blog-hero h1 {
        font-size: var(--text-3xl);
    }
    
    .blog-card h2 {
        font-size: var(--text-xl);
    }
    
    .post-header h1 {
        font-size: var(--text-3xl);
    }
    
    .post-content {
        font-size: var(--text-base);
    }
    
    .blog-sidebar {
        grid-template-columns: 1fr;
    }
    
    .post-meta {
        flex-direction: column;
        gap: var(--space-2);
    }

    .blog-layout {
        gap: var(--space-6);
    }

    .blog-card {
        padding: var(--space-6);
    }

    .post-content h2 {
        font-size: var(--text-xl);
    }

    .post-content h3 {
        font-size: var(--text-lg);
    }

    .blog-post-view .container {
        max-width: none;
        padding: 0 var(--space-4);
    }
}

@media (max-width: 480px) {
    .blog-hero h1 {
        font-size: var(--text-2xl);
        line-height: 1.2;
    }

    .blog-hero p {
        font-size: var(--text-base);
    }

    .blog-card {
        padding: var(--space-4);
    }

    .blog-card h2 {
        font-size: var(--text-lg);
        line-height: 1.3;
    }

    .blog-card .blog-excerpt {
        font-size: var(--text-sm);
    }

    .blog-card .blog-meta {
        font-size: var(--text-xs);
    }

    .post-header {
        padding: 0;
    }

    .post-header h1 {
        font-size: var(--text-xl);
        line-height: 1.3;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .post-content {
        font-size: var(--text-base);
        line-height: 1.7;
        padding: 0;
    }

    .post-content h2 {
        font-size: var(--text-xl);
        margin: var(--space-8) 0 var(--space-4);
        line-height: 1.3;
        word-wrap: break-word;
    }

    .post-content h3 {
        font-size: var(--text-lg);
        margin: var(--space-6) 0 var(--space-3);
        line-height: 1.4;
        word-wrap: break-word;
    }

    .post-content h4 {
        font-size: var(--text-base);
        margin: var(--space-4) 0 var(--space-2);
        font-weight: 600;
    }

    .post-content p {
        margin-bottom: var(--space-5);
        text-align: justify;
    }

    .post-content pre {
        font-size: 0.8rem;
        padding: var(--space-3);
        margin: var(--space-5) 0;
        overflow-x: auto;
        border-radius: var(--radius-md);
        -webkit-overflow-scrolling: touch;
    }

    .post-content code {
        font-size: 0.85em;
        padding: 0.2em 0.4em;
        word-break: break-word;
    }

    .post-content pre code {
        word-break: normal;
        white-space: pre;
    }

    .post-content ul, .post-content ol {
        padding-left: var(--space-5);
        margin: var(--space-4) 0;
    }

    .post-content li {
        margin-bottom: var(--space-3);
        line-height: 1.6;
    }

    .post-content blockquote {
        margin: var(--space-5) 0;
        padding: var(--space-4);
        font-size: var(--text-base);
        border-left-width: 3px;
    }

    .post-content img {
        max-width: 100%;
        height: auto;
        margin: var(--space-5) 0;
        border-radius: var(--radius-md);
    }

    .post-content table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: var(--space-5) 0;
    }

    .post-content a {
        word-break: break-word;
        overflow-wrap: break-word;
    }

    /* Blog diagram styling for mobile */
    .post-content .blog-diagram {
        padding: var(--space-4) !important;
        margin: var(--space-5) 0 !important;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .post-content .blog-diagram img {
        margin: 0;
        max-width: none;
        width: auto;
        height: auto;
        min-width: 100%;
    }

    .post-tags {
        flex-wrap: wrap;
        gap: var(--space-2);
    }

    .blog-tag {
        font-size: var(--text-xs);
        padding: var(--space-1) var(--space-3);
    }

    .blog-post-view .container {
        padding: 0 var(--space-4);
    }

    .post-main {
        padding: 0;
    }

    .post-meta {
        flex-wrap: wrap;
        gap: var(--space-3);
        font-size: var(--text-xs);
    }

    .back-to-blog {
        margin-bottom: var(--space-2);
        font-size: var(--text-sm);
        padding: var(--space-2) var(--space-3);
    }

    .blog-sidebar {
        margin-top: var(--space-6);
        padding: 0;
        gap: var(--space-4);
    }
}