/* ============================================
   AFTER SALES SECTION STYLING
   ============================================ */

:root {
    --primary-dark: #1e1e1e;
    --primary-blue: #0066cc;
    --accent-cyan: #00a8ff;
    --text-light: #666666;
    --bg-white: #ffffff;
    --border-light: #e0e0e0;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   SECTION CONTAINER
   ============================================ */

.section-after-sales {
    background-color: var(--bg-white);
    padding: 60px 20px;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.section-after-sales h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

/* ============================================
   CONTAINER & GRID LAYOUT
   ============================================ */

.after-sales-container {
    /* max-width: 1200px; */
    margin: 0 auto;
    padding: 0 20px;
}

.after-sales-header {
    text-align: center;
    margin-bottom: 50px;
}

.after-sales-header h2 {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 10px;
    letter-spacing: -1px;
}

.after-sales-header .subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.6;
}

.after-sales-header .accent-line {
    width: 60px;
    height: 4px;
    background-color: var(--primary-dark);
    margin: 20px auto 0;
    border-radius: 2px;
}

/* ============================================
   GRID SYSTEM
   ============================================ */

.after-sales-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

/* ============================================
   SERVICE CARD STYLING
   ============================================ */

.after-sales-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 2px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* .after-sales-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-dark);
    transform: translateY(-4px);
} */

.after-sales-card-image {
    width: 100%;
    object-fit: cover;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
}

.after-sales-card-content {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* ============================================
   ICON BADGE STYLING
   ============================================ */

.service-icon-badge {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 28px;
    color: white;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-cyan) 100%);
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
}

.service-icon-badge.icon-service {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.service-icon-badge.icon-warranty {
    background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
    box-shadow: 0 4px 15px rgba(78, 205, 196, 0.3);
}

.service-icon-badge.icon-maintenance {
    background: linear-gradient(135deg, #f9ca24 0%, #f0932b 100%);
    box-shadow: 0 4px 15px rgba(249, 202, 36, 0.3);
}

.service-icon-badge.icon-parts {
    background: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%);
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.3);
}

/* ============================================
   TEXT CONTENT STYLING
   ============================================ */

.after-sales-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 12px;
    line-height: 1.4;
}

.after-sales-card p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 20px;
    flex: 1;
}

/* ============================================
   SERVICE BADGES
   ============================================ */

.service-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.badge-item {
    background-color: #f5f5f5;
    color: var(--primary-dark);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.badge-item:hover {
    background-color: var(--primary-dark);
    color: white;
    border-color: var(--primary-dark);
}

/* ============================================
   BUTTON STYLING
   ============================================ */

.after-sales-btn {
    background-color: var(--primary-dark);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    margin-top: auto;
}

.after-sales-btn:hover {
    background-color: #2a2a2a;
    transform: translateX(2px);
    color: white;
    text-decoration: none;
}

.after-sales-btn i {
    font-size: 0.9rem;
    transition: var(--transition);
}

.fa-brands {
    font-size: 1.9rem !important;
}

.after-sales-btn:hover i {
    transform: translateX(-3px);
}

/* ============================================
   DIVIDER LINE
   ============================================ */

.card-divider {
    width: 40px;
    height: 3px;
    background-color: var(--primary-dark);
    margin: 15px 0 20px 0;
    border-radius: 2px;
}

/* ============================================
   CTA SECTION STYLING
   ============================================ */

.after-sales-cta {
    background-image: url("../img/background/bg-ms.webp");
    background-size: cover;
    /* background-position: center; */
    background-repeat: no-repeat;
    box-shadow: 0 0px 3px 0px gray;
    border-radius: 12px;
    padding: 50px 40px;
}

.cta-content {
    display: flex;
    align-items: center;
    gap: 30px;
}

@media (max-width: 855px) {
    .cta-text-ms {
        background-color: rgb(255, 255, 255);
        border-radius: 6px;
        padding: 10px;
    }
}

.cta-text-ms {
    flex: 1;
    text-align: center;
}

.cta-image {
    width: 30%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mb-img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.after-sales-cta h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.after-sales-cta p {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.6;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.after-sales-cta .after-sales-btn {
    align-self: center;
    padding: 14px 32px;
    font-size: 1rem;
}

/* ============================================
   RESPONSIVE DESIGN - TABLET (1024px)
   ============================================ */

@media (max-width: 1024px) {
    .section-after-sales {
        padding: 50px 15px;
    }
    .section-after-sales h2 {
        font-size: 2.2rem;
    }
    .after-sales-header h2 {
        font-size: 2.2rem;
    }
    .after-sales-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 25px;
    }
    .after-sales-card-content {
        padding: 25px;
    }
    .after-sales-cta {
        padding: 40px 30px;
    }
    .cta-content {
        gap: 20px;
    }
    .after-sales-cta h3 {
        font-size: 1.6rem;
    }
    .after-sales-cta p {
        font-size: 0.95rem;
    }
}

/* ============================================
   RESPONSIVE DESIGN - MOBILE (768px)
   ============================================ */

@media (max-width: 768px) {
    .section-after-sales {
        padding: 40px 12px;
    }
    .section-after-sales h2 {
        font-size: 2rem;
    }
    .after-sales-header h2 {
        font-size: 1.9rem;
    }
    .after-sales-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 20px;
    }
    .after-sales-card-content {
        padding: 20px;
    }
    .after-sales-card h3 {
        font-size: 1.2rem;
    }
    .after-sales-card p {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }
    .service-icon-badge {
        width: 48px;
        height: 48px;
        font-size: 24px;
    }
    .after-sales-cta {
        padding: 30px 20px;
    }
    .cta-content {
        flex-direction: column;
        gap: 20px;
    }
    .cta-image {
        width: 100%;
    }
    .after-sales-cta h3 {
        font-size: 1.4rem;
    }
    .after-sales-cta p {
        font-size: 0.9rem;
    }
}

/* ============================================
   RESPONSIVE DESIGN - SMALL MOBILE (480px)
   ============================================ */

@media (max-width: 480px) {
    .section-after-sales {
        padding: 30px 10px;
    }
    .section-after-sales h2 {
        font-size: 1.7rem;
    }
    .after-sales-header h2 {
        font-size: 1.7rem;
    }
    .after-sales-header .subtitle {
        font-size: 0.95rem;
    }
    .after-sales-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    /* .after-sales-card-image {
        height: 180px;
    } */
    .after-sales-card-content {
        padding: 18px;
    }
    .after-sales-card h3 {
        font-size: 1.1rem;
    }
    .after-sales-card p {
        font-size: 0.85rem;
        margin-bottom: 12px;
    }
    .service-icon-badge {
        width: 44px;
        height: 44px;
        font-size: 20px;
        margin-bottom: 15px;
    }
    .card-divider {
        margin: 12px 0 15px 0;
    }
    .badge-item {
        font-size: 0.75rem;
        padding: 5px 10px;
    }
    .after-sales-btn {
        padding: 10px 18px;
        font-size: 0.85rem;
    }
    .after-sales-cta {
        padding: 25px 15px;
    }
    .after-sales-cta h3 {
        font-size: 1.3rem;
    }
    .after-sales-cta p {
        font-size: 0.85rem;
    }
}

/* ============================================
   ANIMATION
   ============================================ */

.after-sales-card {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   ACCESSIBILITY & PRINT
   ============================================ */

@media print {
    .after-sales-card {
        box-shadow: none;
        border: 1px solid var(--border-light);
    }
    .service-icon-badge {
        display: none;
    }
}

a.after-sales-btn {
    text-decoration: none;
}

a.after-sales-btn:focus,
.after-sales-btn:focus {
    outline: 2px solid var(--primary-dark);
    outline-offset: 2px;
}
