/* Từ resources/views/pages/services/show.blade.php */
.service-detail-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 60px 0;
    color: white;
}

.service-header {
    text-align: center;
}

.service-header-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.service-header h1 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 15px;
}

.service-subtitle {
    font-size: 20px;
    opacity: 0.9;
}

.service-detail-section {
    padding: 60px 0;
    background: var(--bg-light);
}

.service-detail-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
}

.service-main-content {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.content-block {
    margin-bottom: 40px;
}

.content-block:last-child {
    margin-bottom: 0;
}

.content-block h2 {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border);
}

.service-full-description {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-dark);
}

.features-list {
    list-style: none;
    padding: 0;
}

.features-list li {
    display: flex;
    align-items: flex-start;
    padding: 15px;
    margin-bottom: 10px;
    background: var(--bg-light);
    border-radius: 8px;
    transition: background 0.2s;
}

.features-list li:hover {
    background: #e0f2fe;
}

.feature-icon {
    color: var(--primary);
    font-weight: 800;
    font-size: 20px;
    margin-right: 15px;
    flex-shrink: 0;
}

.feature-text {
    flex: 1;
    color: var(--text-dark);
    font-size: 15px;
    line-height: 1.6;
}

.related-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.related-service-card {
    background: var(--bg-light);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.2s;
}

.related-service-card:hover {
    transform: translateY(-3px);
}

.related-service-icon {
    font-size: 36px;
    margin-bottom: 10px;
}

.related-service-card h3,
.related-service-card h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.related-service-card p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 15px;
}

.service-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-card {
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.sidebar-card h3 {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 20px;
}

.pricing-info {
    text-align: center;
    padding: 20px;
    background: var(--bg-light);
    border-radius: 12px;
}

.price-large {
    font-size: 36px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 10px;
}

.price-note {
    color: var(--text-light);
    font-size: 14px;
    margin: 0;
}

.why-choose-list {
    list-style: none;
    padding: 0;
}

.why-choose-list li {
    padding: 12px 0;
    color: var(--text-dark);
    font-size: 15px;
    border-bottom: 1px solid var(--border);
}

.why-choose-list li:last-child {
    border-bottom: none;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

@media (max-width: 1024px) {
    .service-detail-grid {
        grid-template-columns: 1fr;
    }
    
    .service-sidebar {
        order: -1;
    }
}

@media (max-width: 768px) {
    .service-header h1 {
        font-size: 32px;
    }
    
    .service-main-content {
        padding: 25px;
    }
    
    .related-services-grid {
        grid-template-columns: 1fr;
    }
}

/* app.css có .feature-icon (40px, margin-bottom) cho thẻ tính năng của giải pháp */
.features-list .feature-icon {
    margin-bottom: 0;
}

.sidebar-text {
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.6;
}

/* ---------- Bổ sung cho trang chi tiết (dùng cùng css/detail.css) ---------- */
.service-back {
    display: inline-block;
    margin-bottom: 20px;
    color: white;
    font-weight: 600;
    text-decoration: none;
    opacity: 0.9;
}

.service-back:hover {
    opacity: 1;
    text-decoration: underline;
}

.service-subtitle {
    max-width: 780px;
    margin: 0 auto;
}

.service-header .hero-chips {
    justify-content: center;
}

.service-main-content {
    min-width: 0;
}

.content-block {
    scroll-margin-top: 90px;
}

.block-note {
    margin-top: 14px;
    font-size: 14px;
    color: var(--text-light);
}

.callout.content-block h3 {
    font-size: 19px;
}

/* Mục lục ở cuối sidebar dính theo khi cuộn */
.sidebar-sticky {
    position: sticky;
    top: 90px;
}

.sidebar-sticky h3 {
    margin-bottom: 10px;
}

@media (max-width: 1024px) {
    /* Sidebar nằm trên nội dung ở màn hình nhỏ: chỉ giữ thẻ thông tin nhanh */
    .sidebar-desktop {
        display: none;
    }
}

@media (min-width: 769px) {
    .service-main-content .features-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .service-main-content .features-list li {
        margin-bottom: 0;
    }
}
