
body {
    background-color: #f8fafc;
    color: #1e293b;
}

/* Premium Floating Containers */
.modern-container {
    border-radius: 24px !important;
    border: 1px solid rgba(226, 232, 240, 0.8) !important;
    background: #ffffff;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02) !important;
    transition: border-color 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    overflow: hidden;
}

.modern-container:hover {
    border-color: rgba(199, 33, 33, 0.32) !important;
}


/* Expertise Cards Grid */
.expertise-card {
    border-radius: 20px !important;
    border: 1px solid rgba(226, 232, 240, 0.8) !important;
    background: #ffffff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -1px rgba(0, 0, 0, 0.01) !important;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
}

.expertise-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px -8px rgba(0, 0, 0, 0.1) !important;
    border-color: var(--default) !important;
}

.expertise-icon-box {
    width: 50px;
    height: 50px;
    background-color: color-mix(in srgb, var(--default) 10%, transparent);
    color: var(--default);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    transition: all 0.3s ease;
}

.expertise-card:hover .expertise-icon-box {
    background-color: var(--default);
    color: #ffffff;
    transform: scale(1.08);
}

/* Custom Check List styling */
.check-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.check-list li {
    font-size: 0.9rem;
    color: #475569;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: flex-start;
}

.check-list li::before {
    content: "\f00c"; /* FontAwesome check icon */
    font-family: "Font Awesome 7 Free";
    font-weight: 900;
    color: var(--default);
    margin-right: 0.5rem;
    font-size: 0.8rem;
    margin-top: 0.2rem;
}

/* Product Cards Styling */
.product-card-list {
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    border-radius: 16px !important;
    border: 1px solid rgba(226, 232, 240, 0.8) !important;
    overflow: hidden;
}

.product-card-list:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.1) !important;
    border-color: var(--default) !important;
}

.product-img-container {
    background-color: #f8fafc;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
    position: relative;
    overflow: hidden;
}

.brand-tag {
    font-size: 0.725rem;
    font-weight: 700;
    color: #94a3b8;
}

.obsolete-tag {
    position: absolute;
    top: 12px;
    left: 0;
    font-weight: 700;
    font-size: 0.75rem;
    background: #ef4444;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0 6px 6px 0;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.2);
}

.advantage-text {
    font-style: italic;
}

.border-default {
    border-color: var(--default) !important;
}

/* Sidebar Services List */
.service-sidebar-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.service-sidebar-item {
    margin-bottom: 0.75rem;
}

.service-sidebar-item:last-child {
    margin-bottom: 0;
}

.service-sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    color: #475569;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    background-color: #f8fafc;
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: all 0.3s ease;
}

.service-sidebar-link i {
    font-size: 1.1rem;
    color: #64748b;
    transition: all 0.3s ease;
}

.service-sidebar-link:hover {
    color: var(--default);
    background-color: color-mix(in srgb, var(--default) 5%, #ffffff);
    border-color: var(--default);
}

.service-sidebar-link:hover i {
    color: var(--default);
    transform: translateX(4px) scale(1.1);
}

.service-sidebar-link.active {
    color: #ffffff;
    background-color: var(--default);
    border-color: var(--default);
}

.service-sidebar-link.active i {
    color: #ffffff;
}

/* Smooth scrolling and anchor offset for sticky header */
html {
    scroll-behavior: smooth;
}

[id] {
    scroll-margin-top: 100px; /* Offset to clear the sticky header */
}

/* Introduction line-height optimization */
.intro-text-wrapper {
    line-height: 1.6 !important;
}
.intro-text-wrapper p {
    line-height: 1.6 !important;
    margin-bottom: 1rem;
}

/* Custom mobile tabs style */
.custom-tab-btn {
    background-color: #f1f5f9;
    color: #475569;
    border: none;
    transition: all 0.3s ease;
}

.custom-tab-btn.active {
    background-color: var(--default) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px color-mix(in srgb, var(--default) 30%, transparent);
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}

/* Responsive products card (horizontal on mobile, vertical on desktop) */
@media (max-width: 767.98px) {
    .product-card-list {
        flex-direction: row !important;
        align-items: stretch;
    }
    
    .product-card-list .product-img-container {
        width: 35%;
        max-width: 140px;
        min-width: 100px;
        height: auto;
        border-bottom: none;
        border-right: 1px solid rgba(226, 232, 240, 0.5);
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 10px;
    }
    
    .product-card-list .product-img-container img {
        max-height: 100px !important;
        max-width: 100% !important;
        width: auto !important;
        height: auto !important;
        object-fit: contain;
    }

    .product-card-list .card-body {
        width: 65%;
        padding: 1rem !important;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        flex-grow: 1;
    }
    
    .product-card-list .brand-tag {
        top: 12px !important;
        right: 12px !important;
        left: auto !important;
    }

    .product-card-list .obsolete-tag {
        top: 8px;
        font-size: 0.65rem;
        padding: 0.15rem 0.35rem;
    }
    
    .product-card-list h3.h5 {
        font-size: 0.95rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .product-card-list .advantage-text {
        font-size: 0.8rem !important;
    }
    
    .product-card-list .prod-details {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        font-size: 0.75rem !important;
    }
    
    .product-card-list .border-top {
        margin-top: 0.5rem !important;
        padding-top: 0.5rem !important;
    }
    
    .product-card-list .btn {
        width: 100%;
        font-size: 0.8rem !important;
        padding: 0.35rem 0.75rem !important;
    }
}

/* Brand tag as a premium badge */
.product-card-list .brand-tag {
    padding: 6px 10px !important;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(226, 232, 240, 0.8);
    width: 60px !important;
    max-height: 32px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.product-card-list:hover .brand-tag {
    border-color: var(--default);
    box-shadow: 0 4px 12px color-mix(in srgb, var(--default) 15%, rgba(0, 0, 0, 0.08));
}

/* Hidden list items on mobile */
@media (max-width: 767.98px) {
    .check-list li.hidden-mobile-li {
        display: none !important;
    }
    .check-list li.show-mobile-li {
        display: flex !important;
    }
}
