/* =============================================
   Welnesse Brand CSS - Custom Theme Overrides
   Primary Dark: #0a384c (dark teal/navy)
   Secondary Light: #0bcac4 (teal/turquoise)
============================================= */

:root {
    --welnesse-primary: #0a384c;
    --welnesse-secondary: #0bcac4;
    --welnesse-light: #f8f9fa;
    --welnesse-gradient: linear-gradient(135deg, #0a384c 0%, #0bcac4 100%);
}

/* =============================================
   Buttons - Solid Colors (No Gradients)
============================================= */
.btn-seven,
.btn-seven.color-two {
    background: var(--welnesse-primary) !important;
    border-color: var(--welnesse-primary) !important;
    color: #fff !important;
}

.btn-seven:hover,
.btn-seven.color-two:hover {
    background: var(--welnesse-secondary) !important;
    border-color: var(--welnesse-secondary) !important;
    color: #fff !important;
}

.btn-five,
.btn-sixteen {
    background: var(--welnesse-secondary) !important;
    border-color: var(--welnesse-secondary) !important;
    color: #fff !important;
}

.btn-five:hover,
.btn-sixteen:hover {
    background: var(--welnesse-primary) !important;
    border-color: var(--welnesse-primary) !important;
    color: #fff !important;
}

/* =============================================
   Title Styling
============================================= */
.title-nine .upper-title,
.upper-title {
    color: var(--welnesse-secondary) !important;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 14px;
}

.title-nine h2 {
    color: var(--welnesse-primary) !important;
}

/* =============================================
   Hero Section
============================================= */
.hero-banner-six .hero-heading {
    font-size: 80px !important;
    line-height: 1.1 !important;
    color: var(--welnesse-primary) !important;
}

@media (max-width: 1199px) {
    .hero-banner-six .hero-heading { font-size: 60px !important; }
}
@media (max-width: 991px) {
    .hero-banner-six .hero-heading { font-size: 48px !important; }
}
@media (max-width: 767px) {
    .hero-banner-six .hero-heading { font-size: 36px !important; }
}

/* =============================================
   Inner Page Headers & Breadcrumbs
============================================= */
.inner-banner-one {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
}

.inner-banner-one .hero-heading {
    color: var(--welnesse-primary) !important;
}

.breadcrumb-item a {
    color: var(--welnesse-secondary) !important;
}

.breadcrumb-item.active {
    color: var(--welnesse-primary) !important;
}

/* =============================================
   Category Cards - Piku Style with Fixed Height
============================================= */
.category-card-piku,
.card-style-eight.category-card-piku,
.card.text-center.bg-light,
.card.category-card {
    height: 300px !important;
    min-height: 300px !important;
    max-height: 300px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding: 35px 25px 30px !important;
    background: #FFFFFF !important;
    box-shadow: 0px 15px 40px rgba(10, 56, 76, 0.08) !important;
    border-radius: 30px !important;
    transition: all 0.3s ease !important;
    border: 1px solid #e5e7eb !important;
    overflow: hidden !important;
    margin-bottom: 25px !important;
}

.category-card-piku:hover,
.card.text-center.bg-light:hover,
.card.category-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0px 25px 60px rgba(10, 56, 76, 0.15) !important;
}

.category-card-piku .icon,
.card-body.category-card .img-bg {
    width: 100px !important;
    height: 100px !important;
    min-height: 100px !important;
    max-height: 100px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: 20px !important;
    flex-shrink: 0 !important;
    background: var(--welnesse-light) !important;
    border-radius: 20px !important;
}

.category-card-piku .icon img,
.card-body.category-card .img-bg img {
    max-width: 70px !important;
    max-height: 70px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
}

.category-card-piku h5,
.card-body.category-card h5,
.categories-name {
    font-size: 18px !important;
    font-weight: 600 !important;
    color: var(--welnesse-primary) !important;
    margin: 0 0 12px 0 !important;
    line-height: 1.3 !important;
    text-align: center !important;
    height: 48px !important;
    min-height: 48px !important;
    max-height: 48px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.category-card-piku p,
.card-body.category-card p,
.categories-desc {
    font-size: 14px !important;
    color: #6b7280 !important;
    line-height: 1.5 !important;
    margin: 0 !important;
    text-align: center !important;
    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

/* =============================================
   Service Cards - Uniform Style
============================================= */
.service-box-card {
    height: 100% !important;
    min-height: 400px !important;
    background: #FFFFFF !important;
    box-shadow: 0px 15px 40px rgba(10, 56, 76, 0.08) !important;
    border-radius: 20px !important;
    padding: 20px !important;
    transition: all 0.3s ease !important;
    border: 1px solid #e5e7eb !important;
    display: flex !important;
    flex-direction: column !important;
    margin-bottom: 25px !important;
}

.service-box-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0px 25px 60px rgba(10, 56, 76, 0.15) !important;
}

.service-box-card .iq-image {
    height: 200px !important;
    min-height: 200px !important;
    max-height: 200px !important;
    overflow: hidden !important;
    border-radius: 15px !important;
    margin-bottom: 15px !important;
}

.service-box-card .service-img {
    width: 100% !important;
    height: 200px !important;
    object-fit: cover !important;
    border-radius: 15px !important;
}

.service-box-card .service-title {
    height: 48px !important;
    min-height: 48px !important;
    max-height: 48px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    color: var(--welnesse-primary) !important;
}

/* =============================================
   Provider Cards - Uniform Style
============================================= */
.iq-team {
    height: 100% !important;
    min-height: 350px !important;
    background: #FFFFFF !important;
    box-shadow: 0px 15px 40px rgba(10, 56, 76, 0.08) !important;
    border-radius: 20px !important;
    padding: 25px 20px !important;
    transition: all 0.3s ease !important;
    border: 1px solid #e5e7eb !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    margin-bottom: 25px !important;
}

.iq-team:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0px 25px 60px rgba(10, 56, 76, 0.15) !important;
}

.iq-provider-img {
    width: 100% !important;
    height: 200px !important;
    min-height: 200px !important;
    max-height: 200px !important;
    overflow: hidden !important;
    border-radius: 15px !important;
    margin-bottom: 15px !important;
}

.iq-provider-img img {
    width: 100% !important;
    height: 200px !important;
    object-fit: cover !important;
}

/* =============================================
   Blog Cards - Uniform Style
============================================= */
.iq-blog {
    height: 100% !important;
    min-height: 420px !important;
    background: #FFFFFF !important;
    box-shadow: 0px 15px 40px rgba(10, 56, 76, 0.08) !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    transition: all 0.3s ease !important;
    border: 1px solid #e5e7eb !important;
    display: flex !important;
    flex-direction: column !important;
    margin-bottom: 25px !important;
}

.iq-blog:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0px 25px 60px rgba(10, 56, 76, 0.15) !important;
}

.iq-blog .blog-image {
    height: 200px !important;
    min-height: 200px !important;
    max-height: 200px !important;
    overflow: hidden !important;
}

.iq-blog .blog-image img {
    width: 100% !important;
    height: 200px !important;
    object-fit: cover !important;
}

.iq-blog .iq-post-details {
    padding: 20px !important;
    flex-grow: 1 !important;
    display: flex !important;
    flex-direction: column !important;
}

.iq-blog .blog-title h5 {
    height: 52px !important;
    min-height: 52px !important;
    max-height: 52px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    color: var(--welnesse-primary) !important;
}

/* =============================================
   DataTable Card Container Fixes
============================================= */
.custom-card-table thead {
    display: none !important;
}

.custom-card-table tbody {
    display: flex !important;
    flex-wrap: wrap !important;
    margin: 0 -12px !important;
}

.custom-card-table tbody tr {
    display: block !important;
    width: 100% !important;
    padding: 0 12px !important;
    margin-bottom: 25px !important;
    border: none !important;
}

.custom-card-table tbody td {
    display: block !important;
    width: 100% !important;
    padding: 0 !important;
    border: none !important;
}

/* Responsive grid for cards */
@media (min-width: 576px) {
    .custom-card-table tbody tr {
        width: 50% !important;
    }
}

@media (min-width: 992px) {
    .custom-card-table tbody tr {
        width: 33.333% !important;
    }
}

@media (min-width: 1200px) {
    .custom-card-table tbody tr {
        width: 25% !important;
    }
}

/* =============================================
   Card Style Ten (Why Choose Us)
============================================= */
.card-style-ten {
    background: #fff !important;
    border-radius: 30px !important;
    padding: 45px 35px !important;
    box-shadow: 0px 15px 40px rgba(10, 56, 76, 0.08) !important;
    transition: all 0.3s ease !important;
    border: 1px solid #e5e7eb !important;
}

.card-style-ten:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0px 25px 60px rgba(10, 56, 76, 0.15) !important;
}

.card-style-ten h4 {
    color: var(--welnesse-primary) !important;
    font-weight: 600 !important;
}

.card-style-ten p {
    color: #6b7280 !important;
    font-size: 16px !important;
    line-height: 1.6 !important;
}

/* =============================================
   How It Works Cards (Card Style Nine)
============================================= */
.card-style-nine {
    background: #fff !important;
    border: 2px solid var(--welnesse-primary) !important;
    border-radius: 30px !important;
    padding: 40px 30px !important;
    box-shadow: 6px 6px 0 var(--welnesse-secondary) !important;
    transition: all 0.3s ease !important;
    min-height: 280px !important;
    margin-bottom: 25px !important;
}

.card-style-nine:hover {
    transform: translate(-4px, -4px) !important;
    box-shadow: 10px 10px 0 var(--welnesse-secondary) !important;
}

.card-style-nine .num {
    font-size: 48px !important;
    font-weight: 700 !important;
    color: var(--welnesse-secondary) !important;
    border-bottom: 2px solid var(--welnesse-primary) !important;
    display: inline-block !important;
    padding-bottom: 10px !important;
}

.card-style-nine h4 {
    color: var(--welnesse-primary) !important;
    font-weight: 600 !important;
    margin-top: 30px !important;
    margin-bottom: 15px !important;
}

.card-style-nine p {
    color: #6b7280 !important;
    font-size: 16px !important;
    line-height: 1.6 !important;
}

/* =============================================
   Header User Dropdown
============================================= */
.user-dropdown .dropdown-menu {
    min-width: 220px !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15) !important;
    border-radius: 12px !important;
    border: none !important;
    padding: 0 !important;
    overflow: hidden !important;
}

.user-dropdown .dropdown-item {
    padding: 10px 16px !important;
    font-size: 14px !important;
    color: #374151 !important;
    transition: all 0.2s !important;
}

.user-dropdown .dropdown-item:hover {
    background: var(--welnesse-light) !important;
    color: var(--welnesse-primary) !important;
}

.user-dropdown .dropdown-item.text-danger:hover {
    background: #fef2f2 !important;
}

/* =============================================
   Footer Styling
============================================= */
.footer-style-two {
    background: var(--welnesse-light) !important;
}

.footer-style-two h5,
.footer-style-two h6 {
    color: var(--welnesse-primary) !important;
}

.footer-style-two a {
    color: #6b7280 !important;
    transition: color 0.2s !important;
}

.footer-style-two a:hover {
    color: var(--welnesse-secondary) !important;
}

/* =============================================
   Primary Color Overrides
============================================= */
.text-primary {
    color: var(--welnesse-primary) !important;
}

.bg-primary {
    background: var(--welnesse-primary) !important;
}

a {
    color: var(--welnesse-secondary);
}

a:hover {
    color: var(--welnesse-primary);
}

/* =============================================
   Hide Yellow/Orange Shape Images
============================================= */
.shapes.shape_01,
.shapes.shape_02,
img[src*="shape_51"],
img[src*="shape_52"],
img[src*="shape_53"],
img[src*="shape_54"],
img[src*="shape_59"] {
    display: none !important;
}

/* =============================================
   Mobile Responsiveness
============================================= */
@media (max-width: 991px) {
    .category-card-piku,
    .card.text-center.bg-light,
    .card.category-card {
        height: 280px !important;
        min-height: 280px !important;
        max-height: 280px !important;
        padding: 25px 20px !important;
    }
    
    .service-box-card {
        min-height: 380px !important;
    }
    
    .iq-team {
        min-height: 320px !important;
    }
    
    .iq-blog {
        min-height: 400px !important;
    }
    
    .card-style-nine {
        min-height: auto !important;
        padding: 30px 25px !important;
    }
}

@media (max-width: 576px) {
    .category-card-piku,
    .card.text-center.bg-light,
    .card.category-card {
        height: auto !important;
        min-height: 250px !important;
        max-height: none !important;
    }
    
    .custom-card-table tbody tr {
        width: 100% !important;
    }
}

/* =============================================
   Loading Shimmer
============================================= */
.shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* =============================================
   Fix Horizontal Scrollbar on Listing Pages
============================================= */

/* Prevent horizontal overflow */
.main-page-wrapper {
    overflow-x: hidden !important;
}

body {
    overflow-x: hidden !important;
}

.container {
    max-width: 100% !important;
    overflow-x: hidden !important;
}

/* Fix DataTable horizontal scroll */
.table-responsive {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
}

.custom-card-table {
    width: 100% !important;
    overflow: visible !important;
}

.custom-card-table tbody {
    display: flex !important;
    flex-wrap: wrap !important;
    margin: 0 -10px !important;
    width: 100% !important;
}

.custom-card-table tbody tr {
    flex: 0 0 auto !important;
    padding: 0 10px !important;
    box-sizing: border-box !important;
}

/* Remove scrollbar styling */
.dataTables_wrapper {
    overflow: visible !important;
    width: 100% !important;
}

.dataTables_scroll,
.dataTables_scrollBody {
    overflow: visible !important;
}

/* Category card grid fix */
.category-card-piku,
.card-style-eight.category-card-piku {
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Service card grid fix */
.service-box-card {
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Provider card grid fix */
.iq-team {
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Blog card grid fix */
.iq-blog {
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Row fix */
.row {
    margin-left: -12px !important;
    margin-right: -12px !important;
}

.row > * {
    padding-left: 12px !important;
    padding-right: 12px !important;
}

/* Service list section fix */
.service-list-section .row {
    margin: 0 -10px !important;
}

.service-list-section .col-lg-4,
.service-list-section .col-md-6 {
    padding: 0 10px !important;
    margin-bottom: 20px !important;
}

/* Hide any horizontal scrollbars */
::-webkit-scrollbar {
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* =============================================
   Search Bar Fix - Prevent Icon Overlap
============================================= */
.search-form input,
.form-control.search-input,
input[type="search"],
input[type="text"].search,
.dataTables_filter input {
    padding-left: 45px !important;
    text-indent: 0 !important;
}

.search-form .search-icon,
.search-form svg,
.search-form i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    pointer-events: none;
}

/* =============================================
   Category Cards - Uniform Sizing & Smaller Text
============================================= */
.category-card-piku,
.card-style-eight.category-card-piku,
.card-style-eight {
    height: 220px !important;
    min-height: 220px !important;
    max-height: 220px !important;
    padding: 25px 20px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    text-align: center !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

.category-card-piku h5,
.card-style-eight h5,
.category-card-piku .card-title {
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    margin: 0 !important;
    max-height: 54px !important;
    overflow: hidden !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    word-break: break-word !important;
}

.category-card-piku .icon,
.card-style-eight .icon {
    width: 100px !important;
    height: 100px !important;
    min-height: 100px !important;
    max-height: 100px !important;
    margin-bottom: 15px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
}

.category-card-piku .icon img,
.card-style-eight .icon img {
    max-width: 80px !important;
    max-height: 80px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
}

/* Remove description from category cards to keep uniform */
.category-card-piku p,
.card-style-eight p {
    display: none !important;
}

/* Grid for category cards */
.custom-card-table tbody tr {
    width: 25% !important;
}

@media (max-width: 1199px) {
    .custom-card-table tbody tr {
        width: 33.333% !important;
    }
}

@media (max-width: 991px) {
    .custom-card-table tbody tr {
        width: 50% !important;
    }
    
    .category-card-piku,
    .card-style-eight.category-card-piku,
    .card-style-eight {
        height: 200px !important;
        min-height: 200px !important;
        max-height: 200px !important;
    }
    
    .category-card-piku h5,
    .card-style-eight h5 {
        font-size: 13px !important;
    }
}

@media (max-width: 575px) {
    .custom-card-table tbody tr {
        width: 50% !important;
    }
    
    .category-card-piku,
    .card-style-eight.category-card-piku,
    .card-style-eight {
        height: 180px !important;
        min-height: 180px !important;
        max-height: 180px !important;
        padding: 20px 15px !important;
    }
    
    .category-card-piku .icon,
    .card-style-eight .icon {
        width: 70px !important;
        height: 70px !important;
        min-height: 70px !important;
        max-height: 70px !important;
        margin-bottom: 10px !important;
    }
    
    .category-card-piku .icon img,
    .card-style-eight .icon img {
        max-width: 60px !important;
        max-height: 60px !important;
    }
    
    .category-card-piku h5,
    .card-style-eight h5 {
        font-size: 12px !important;
    }
}
