/**
 * Service Detail Wide Content
 * ทำให้ส่วน content กว้างขึ้น
 */

/* Override container width */
.service-detail-main .container {
    max-width: 100% !important;
    padding: 0 3rem !important;
}

/* Make content grid full width */
.service-detail-main .content-grid {
    max-width: 100% !important;
    padding: 0 !important;
}

/* Make service content full width */
.service-detail-main .service-content {
    max-width: 100% !important;
    width: 100% !important;
}

/* Adjust content sections for wider layout */
.service-content .content-section {
    max-width: 100%;
}

/* Wider pricing table */
.pricing-table-container {
    overflow-x: auto;
    max-width: 100%;
}

.pricing-table {
    width: 100%;
    min-width: 800px;
}

/* Wider features grid - Better proportions */
.features-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    align-items: stretch;
}

/* Make feature items equal height */
.feature-item {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    height: 100%;
    min-height: 140px;
}

/* Ensure feature content takes full width */
.feature-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.feature-content h4 {
    margin: 0 0 0.75rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a202c;
}

.feature-content p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #4a5568;
    flex: 1;
}

/* Feature icon consistent sizing */
.feature-icon {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    margin-right: 0;
}

/* Wider area grid */
.area-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

/* Fix area-card layout to prevent icon overlap */
.area-card {
    display: flex;
    flex-direction: column;
}

.area-icon {
    flex-shrink: 0;
    margin-bottom: 1.5rem;
}

.area-card h4 {
    margin-top: 0;
    margin-bottom: 1rem;
}

.area-list {
    margin: 0 0 1.5rem 0;
    padding: 0;
}

.area-list li {
    position: relative;
    padding: 0.75rem 0 0.75rem 2rem;
    border-bottom: 1px solid #e2e8f0;
    line-height: 1.5;
}

.area-list li::before {
    content: '📍';
    position: absolute;
    left: 0;
    top: 0.75rem;
    font-size: 1rem;
}

.area-list li:last-child {
    border-bottom: none;
}

.area-note {
    margin-top: auto;
    padding-top: 1rem;
}

/* Responsive adjustments */
@media (min-width: 1600px) {

    /* Extra large screens - 4 columns */
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1200px) and (max-width: 1599px) {

    /* Large screens - 3 columns */
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 900px) and (max-width: 1199px) {

    /* Medium screens - 2 columns */
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 1400px) {
    .service-detail-main .container {
        padding: 0 2rem !important;
    }
}

@media (max-width: 899px) {

    /* Small screens - 1 column */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .feature-item {
        min-height: 120px;
    }
}

@media (max-width: 768px) {
    .service-detail-main .container {
        padding: 0 1rem !important;
    }

    .area-grid {
        grid-template-columns: 1fr;
    }

    .feature-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }

    .feature-content h4 {
        font-size: 1rem;
    }

    .feature-content p {
        font-size: 0.9rem;
    }
}

/* Make specifications list wider */
.specifications-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.specifications-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 12px;
}

/* Wider survey grid */
.survey-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

/* Full width description */
.service-description {
    max-width: 100%;
    line-height: 1.8;
}

.service-description p {
    margin-bottom: 1rem;
}

.service-description ul,
.service-description ol {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.service-description li {
    margin-bottom: 0.5rem;
}

/* Wider pricing notes */
.pricing-notes {
    max-width: 100%;
}

.pricing-notes ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    list-style: none;
    padding: 0;
}

.pricing-notes li {
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid #667eea;
}

/* Wider base price card */
.pricing-card.base-price {
    max-width: 100%;
    text-align: center;
    padding: 2rem;
}


/* Related Services Section - Force Visible */
.related-services {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    padding: 4rem 0 !important;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    margin: 0 !important;
    position: relative !important;
    z-index: 1 !important;
}

.related-services .container {
    max-width: 100%;
    padding: 0 3rem;
}

.related-services .section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.related-services .section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.related-services .section-header p {
    font-size: 1.1rem;
    color: #6c757d;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.related-card {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    background: white !important;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.related-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transition: height 0.3s ease;
}

.related-card:hover::before {
    height: 6px;
}

.related-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.2);
}

.related-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #f8f9fa;
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.related-card:hover .related-image img {
    transform: scale(1.1);
}

.related-content {
    padding: 2rem;
}

/* Force h3 to be visible with high specificity */
.related-services .related-content h3,
.related-card .related-content h3 {
    margin: 0 0 1rem 0 !important;
    font-size: 1.5rem !important;
    font-weight: 600 !important;
    color: #2d3748 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    line-height: 1.4 !important;
}

/* Force p to be visible with high specificity */
.related-services .related-content p,
.related-card .related-content p {
    margin: 0 0 1.5rem 0 !important;
    color: #4a5568 !important;
    line-height: 1.6 !important;
    font-size: 0.95rem !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Force link to be visible */
.related-services .related-link,
.related-card .related-link {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    color: #667eea !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    transition: all 0.3s ease !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.related-link:hover {
    color: #764ba2;
    gap: 0.75rem;
}

.related-link i {
    transition: transform 0.3s ease;
}

.related-link:hover i {
    transform: translateX(5px);
}

/* Responsive */
@media (max-width: 1200px) {
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .related-services {
        padding: 3rem 0;
    }

    .related-services .container {
        padding: 0 1rem;
    }

    .related-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .related-services .section-header h2 {
        font-size: 2rem;
    }

    .related-image {
        height: 180px;
    }

    .related-content {
        padding: 1.5rem;
    }
}


/* ========================================
   NUCLEAR OPTION - Maximum Specificity
   Force Related Services to be visible
   ======================================== */

html body .modern-service-detail .related-services {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

html body .modern-service-detail .related-services .section-header h2 {
    color: #667eea !important;
    font-size: 2.5rem !important;
    display: block !important;
    visibility: visible !important;
}

html body .modern-service-detail .related-services .section-header p {
    color: #6c757d !important;
    font-size: 1.1rem !important;
    display: block !important;
    visibility: visible !important;
}

html body .modern-service-detail .related-services .related-card {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    background: white !important;
}

html body .modern-service-detail .related-services .related-content h3 {
    color: #2d3748 !important;
    font-size: 1.5rem !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

html body .modern-service-detail .related-services .related-content p {
    color: #4a5568 !important;
    font-size: 0.95rem !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

html body .modern-service-detail .related-services .related-link {
    color: #667eea !important;
    font-size: 1rem !important;
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/*
 ========================================
   Fix Gradient Orbs on Mobile
   ======================================== */

@media (max-width: 768px) {
    /* Hide or reduce gradient orbs on mobile */
    .hero-bg-animation .gradient-orb {
        display: none !important;
    }
    
    /* Alternative: Make them smaller and less intrusive */
    /* Uncomment if you want to keep them but smaller
    .hero-bg-animation .gradient-orb {
        opacity: 0.3 !important;
        filter: blur(20px) !important;
    }
    
    .hero-bg-animation .orb-1 {
        width: 150px !important;
        height: 150px !important;
    }
    
    .hero-bg-animation .orb-2 {
        width: 200px !important;
        height: 200px !important;
    }
    
    .hero-bg-animation .orb-3 {
        width: 125px !important;
        height: 125px !important;
    }
    */
}

@media (max-width: 480px) {
    /* Definitely hide on small phones */
    .hero-bg-animation,
    .hero-bg-animation .gradient-orb {
        display: none !important;
    }
}
