/*business main page*/

.category-masonry-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    direction: rtl;
    margin-bottom: 150px;
}
.grid-item {
    width: 100%;
    aspect-ratio: 1 / 1;
}
.grid-item.featured-square {
    grid-area: span 2 / span 2;
    aspect-ratio: 1 / 1;
}
.grid-item.featured-wide {
    grid-area: span 1 / span 2;
    aspect-ratio: 2 / 1;
}
.category-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}
.category-card {
    position: relative;
    width: 100%;
    height: 100%;
    background-color: rgb(255, 255, 255);
    overflow: hidden;
    border-radius: 36px;
    cursor: pointer;
    display: block;
    transition:
        box-shadow 0.3s,
        border-color 0.3s;
    border: 15px solid rgb(255, 255, 255);
    box-shadow: rgba(0, 0, 0, 0.3) 0px 0px 15px;
}
.card-media {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}
.card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 20px;
}
.category-card:hover .card-media img {
    transform: scale(1.15);
}
.card-overlay {
    position: absolute;
    inset: 0px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5) 15%, rgba(0, 0, 0, 0) 100%);
    z-index: 1;
    border-radius: 20px;
}
.card-content-front {
    position: absolute;
    bottom: 0px;
    right: 0px;
    width: 100%;
    padding: 30px 25px;
    z-index: 2;
    text-align: right;
}
.card-content-front h3 {
    color: rgb(255, 255, 255);
    font-size: 2.2rem;
    font-weight: 700;
    width: 80%;
}
.grid-item.highlight .category-card {
    background-color: rgb(110, 141, 110);
    border-width: medium;
    border-style: none;
    border-color: currentcolor;
    border-image: initial;
}
.grid-item.highlight .card-content-front {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.grid-item.highlight h3 {
    color: rgb(255, 255, 255);
    font-size: 1.6rem;
    text-shadow: none;
    position: static;
}
.grid-item.highlight .card-overlay {
    display: none;
}
.minimal-arrow {
    margin-top: 8px;
    color: rgb(110, 141, 110);
    font-size: 0.95rem;
}
.grid-item.highlight .minimal-arrow {
    color: rgb(255, 255, 255);
}
.join-card {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    text-align: right;
    height: 100%;
    text-decoration: none;
    transition: 0.3s;
    background-color: rgb(110, 141, 110) !important;
}
.join-card .card-content-front {
    bottom: 50%;
    transform: translateY(50%);
}
.join-card:hover {
    filter: brightness(1.1);
}
   .grid-item.load-more-card {
        display: none;
    }
    .category-filter-bar {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 14px 20px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #4a5568;
    margin-left: 8px;
}

.filter-chip {
    position: relative;
    display: inline-block;
}

.filter-chip input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.filter-chip .chip-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background-color: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.25s ease;
    user-select: none;
}

.filter-chip .chip-button:hover {
    background-color: #e2e8f0;
    border-color: #729377;
}

.filter-chip input[type="checkbox"]:checked + .chip-button {
    background-color: #729377;
    color: #ffffff;
    border-color: #729377;
    box-shadow: 0 3px 8px rgba(114, 147, 119, 0.3);
}

.filter-chip .chip-icon {
    font-size: 0.85rem;
}
@media (max-width: 1199px) {
    .category-masonry-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: min-content;
        gap: 15px;
    }
    .card-content-front h3 {
        font-size: 1.5rem;
    }
    .join-card h3 .big-word {
        font-size: 2.6rem;
    }
    .category-card {
        border: 10px solid rgb(255, 255, 255);
    }
    .grid-item.featured-wide {
        grid-area: span 1 / span 1;
        aspect-ratio: 1 / 1;
    }
    .grid-item.mobile-tall {
        grid-area: span 1 / span 2;
        aspect-ratio: 2 / 1;
    }
    .grid-item.mobile-square {
        grid-area: span 1 / span 2;
        aspect-ratio: 1 / 1;
    }
}
@media (max-width:991px){

  .grid-item.load-more-card {
      display: block;
    }
    #loadMoreCategories h3 {
        color: #779a75;
        font-weight: 500;
        font-size: clamp(1.1rem,  3vw, 2.5rem);
    }
    #loadMoreCategories .card-content-front {
        bottom: 50%;
        transform: translateY(50%);
    }
}


@media (max-width: 600px) {
    .category-card {
        border: 8px solid rgb(255, 255, 255);
        border-radius: 15px;
    }
    .card-content-front {
        padding: 15px;
    }
    .card-content-front h3 {
        font-size: 1.2rem;
        width: 100%;
    }
    .join-card .card-content-front {
        padding: 1.5rem 1rem 0px 0px;
    }
    .join-card h3 {
        font-size: 1.1rem;
        line-height: 0.9;
    }
    .join-card h3 .big-word {
        font-size: 1.8rem;
        margin-bottom: 2px;
    }
    .card-media img {
        border-radius: 10px;
    }
    .card-overlay {
        border-radius: 10px;
    }
}

/*category business page*/
.business-grid {
    direction: rtl;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 24px;
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
}

.business-card {
    background: #ffffff;
    border-radius: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    direction: rtl;
    border: 1px solid #f2f2f2;
    padding: 1.5rem;
    box-sizing: border-box;
    position: relative;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                border-color 0.4s ease;
}

.business-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 38px rgba(0, 0, 0, 0.08);
    border-color: #e2e8f0;
}

.business-card .card-image-wrapper {
    width: 100%;
    aspect-ratio: 16 / 10;
    background-color: #e0e0e0;
    border-radius: 1.2rem;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.business-card .card-image-placeholder {
    display: block;
    width: 100%;
    height: 100%;
}

.business-card .card-image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.business-card:hover .card-image-placeholder img {
    transform: scale(1.05);
}

.business-card .card-body {
    padding: 0;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    flex-grow: 1;
}

.business-card .card-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 1rem 0;
    line-height: 1.25;
    word-break: break-word;
    position: relative;
    padding-bottom: 0.75rem;
}

.business-card .card-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 4rem;
    height: 3px;
    background-color: #9cb3a1;
    border-radius: 2px;
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.business-card:hover .card-title::after {
    width: 5.5rem;
}

.business-card .card-description {
    font-size: 1rem;
    color: #4a4a4a;
    line-height: 1.5;
    margin: 1rem 0 0 0;
}

.business-card .card-footer {
    border-top: none;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-top: 25px;
    padding: 0;
}

.business-card .contact-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.business-card .contact-right {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.business-card .contact-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    font-size: 0.95rem;
    color: #2b2b2b;
    text-decoration: none;
}

.business-card .contact-item.phone {
    transition: color 0.2s ease;
}

.business-card .contact-item.phone:hover {
    color: #61876e;
}

.business-card .contact-item .icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 1.2em;
    font-size: 1.05em;
}

.business-card .contact-item .icon i {
    color: #7ba186;
}

.business-card .contact-left {
    display: flex;
    justify-content: flex-start; 
    margin-top: 4px;
}

.business-card .more-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;           
    color: #729676;       
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.business-card .more-link:hover {
    color: #415a4a;
}

.business-card .more-link::after {
    content: '←';
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1); 
}

.business-card .more-link:hover::after {
    transform: translateX(-5px);
}

.business-card .card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-start;
}

.business-card .tag {
    background-color: #ccd7ce;
    color: #4a5e51;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.4rem 1rem;
    border-radius: 1rem;
    white-space: nowrap;
    transition: background-color 0.25s ease, color 0.25s ease;
}

.business-card .tag:hover {
    background-color: #b7c7ba;
    color: #2d3d32;
}
section.category-group {
    margin-top: 75px;
}
/*h2*/
@media (min-width: 768px) {
    .section-header {
        align-items: start;
        text-align: center;
    }

    .section-header svg {
        left: auto;
        transform: translate(0%, -50%);
    }
}
/*sub categories list*/
.category-chip {
    background: #c8d6c8;
    border-radius: 30px;
    padding: 0.4rem 1rem; 
    color: #425b42;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease-in-out; 
    border: 2px solid transparent; 
    font-weight: 500;
}

.category-chip:hover {
    background: #b5c7b5; 
    color: #2b3f2b;
    transform: translateY(-2px); 
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08); 
    text-decoration: none;
}

.category-chip:active,
.category-chip.active {
    background: #425b42;
    color: #ffffff !important;
    border: 2px solid #2b3f2b; 
    transform: translateY(0); 
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15); 
}

@media (max-width: 768px) {
    
    .business-sub-categories h2 {
        text-align: center;
        font-size: 1.3rem;
        margin-bottom: 15px;
    }

    .category-list {
        display: flex;
        flex-wrap: wrap;      
        justify-content: center;
        gap: 8px;          
        padding: 0 15px;     
    }

    .category-chip {
        padding: 0.4rem 0.85rem;
        font-size: 0.85rem;   
    }
}
/*cover  category page*/
.page-header {
    position: relative;
    width: 100%;
    height: 400px; 
    background-size: cover;
    background-position: left center; 
    background-repeat: no-repeat;
    overflow: visible; 
    z-index: 5; 
    
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
}

.page-header .overlay {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 1;
    bottom: -2px; 
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 400" preserveAspectRatio="none"><path fill="%23ffffff" d="M1000,0 L855,0 C780,0 740,80 720,177 C700,270 640,340 600,365 C560,390 500,375 450,375 C400,375 350,400 300,400 C250,400 200,375 150,375 C100,375 50,400 0,400 L1000,400 Z"></path></svg>');
}

.page-header .page-content-head {
    position: relative;
    z-index: 2;
    background-color: #729a74;
    padding: 20px 80px 20px 20px;
    border-radius: 30px 0 0 30px;
    margin-right: 0;
    margin-bottom: 35px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    min-width: 500px;
    text-align: right;
    width: auto;
}

.page-header .breadcrumbs {
    margin-bottom: 8px;
}

.page-header .breadcrumbs ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: row;
    justify-content: start;
    gap: 6px;
}

.page-header .breadcrumbs li {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
}

.page-header .breadcrumbs a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.2s ease;
}

.page-header .breadcrumbs a:hover {
    color: #ffffff;
}
.page-header .breadcrumbs li[aria-current="page"] a {
    color: #ffffff;
    font-weight: 500;
    pointer-events: none;
}

.page-header .page-title {
    font-size: 3rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

@media (max-width: 768px) {
    .page-header {
        height: 240px;
        align-items: center;
        justify-content: center;
        background-position: center center;
        overflow: hidden; 
    }
    
    .page-header .overlay {
        background: rgba(0, 0, 0, 0.45);
        bottom: 0;
        filter: none;
    }
    
    .page-header .page-content-head {
        margin-right: 0;
        margin-bottom: 0;
        background: transparent;
        box-shadow: none;
        text-align: center;
        width: 100%;
        padding: 15px;
    }
    
    .page-header .breadcrumbs ul {
        justify-content: center;
    }
    
    .page-header .page-title {
        font-size: 1.8rem;
    }
}
