.section-title::after {
  position: absolute;
  content: "";
  width: 100%;
  height: 0;
  top: 50%;
  left: 0;
  border-top: 1px dashed #bec5cb;
  z-index: -1;
}

.cat-item {
  background: #FFFFFF;
  transition: .5s;
}

.cat-item:hover {
  background : #0F766E; 
}

.cat-item img {
  transition: .5s;
}

.cat-item:hover img {
  transform: scale(1.2) rotate(5deg);
}
.flex-fill {
  flex: 1 1 auto !important;
  margin-left:12px;
}

.flex-fill:hover h6{
    color: white;
}

.subcategorylist:hover img{
    transform: scale(1.2) rotate(5deg);
}

.subcategorylist:hover .card-body h6{
     color : #0F766E; 
     font-size:20px;
}





/* category items css  */

/* === Category Section — ec- prefix to avoid conflicts === */
.ec-section {
    padding: 3rem 2rem;
    background: #F5F7FA;
}

.ec-heading {
    text-align: center;
    margin-bottom: 2rem;
}

.ec-heading h2 {
    font-size: 22px;
    font-weight: 600;
    color: #1a1a2e;
    letter-spacing: 0.5px;
    margin: 0 0 8px;
    text-transform: uppercase;
}

.ec-heading p {
    font-size: 14px;
    color: #6c757d;
    margin: 0;
}

.ec-heading-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 6px;
}

.ec-heading-line::before,
.ec-heading-line::after {
    content: '';
    flex: 0 0 48px;
    height: 2px;
    background: #dee2e6;
    border-radius: 2px;
}

/* Responsive grid */
.ec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Card */
.ec-card {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    text-decoration: none;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.ec-card:hover {
    border-color: #adb5bd;
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07);
    text-decoration: none;
}

/* Image circle */
.ec-card-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ec-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.ec-card-name {
    font-size: 14px;
    font-weight: 600;
    color: #212529;
    text-align: center;
    margin: 0;
}

.ec-card-count {
    font-size: 12px;
    color: #6c757d;
    margin: 0;
}


/*car bike sub category css*/

 /* Section Scoped Styles */
    .custom-car-acc-section .section-title u {
        text-decoration: none;
        position: relative;
        padding-bottom: 10px;
        display: inline-block;
    }
    
    /* Elegant underline effect for the title */
    .custom-car-acc-section .section-title u::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 60px;
        height: 3px;
        background-color: #ffc107; /* Change this to match your theme's primary accent color */
        border-radius: 2px;
    }

    /* Card Styling */
    .custom-car-acc-section .category-card {
        background: #ffffff;
        border-radius: 12px !important;
        overflow: hidden;
        transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
        border: 1px solid rgba(0, 0, 0, 0.03) !important;
    }

    /* Smooth Lift & Glow Effect on Hover */
    .custom-car-acc-section .subcategory-link:hover .category-card {
        transform: translateY(-8px);
        box-shadow: 0 12px 20px rgba(0, 0, 0, 0.08) !important;
        border-color: rgba(0, 0, 0, 0.08) !important;
    }

    /* Image Container & Micro-interaction */
    .custom-car-acc-section .card-img-wrapper {
        background-color: #f9f9f9;
        margin: 12px;
        border-radius: 8px;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
        height: 150px; /* Slightly reduced to give breathing room to the card */
        transition: background-color 0.3s ease;
    }

    .custom-car-acc-section .subcategory-link:hover .card-img-wrapper {
        background-color: #f1f1f1;
    }

    .custom-car-acc-section .card-img-top {
        transition: transform 0.3s ease;
        max-height: 100%;
        width: auto;
    }

    /* Image zoom on hover */
    .custom-car-acc-section .subcategory-link:hover .card-img-top {
        transform: scale(1.06);
    }

    /* Typography Styling */
    .custom-car-acc-section .card-body {
        padding: 0 15px 20px 15px !important;
    }

    .custom-car-acc-section .category-title {
        font-size: 0.95rem;
        font-weight: 600;
        color: #333333;
        margin: 0;
        transition: color 0.3s ease;
        /* Line clamping to handle long text gracefully */
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        height: 2.8em; 
        line-height: 1.4;
    }

    .custom-car-acc-section .subcategory-link:hover .category-title {
        color: #000000; /* Darkens text on hover, change to primary color if preferred */
    }
    
    
      .whatsapp-float{
    position: fixed;
    right: 25px;
    bottom: 25px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 4px 10px rgba(0,0,0,.3);
}
