/* ============================================
   Specialized Care — Front-end Styles
   ============================================ */

html {
    scroll-padding-top: 100px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 36px;
    margin-top: 36px;
}

@media (max-width: 991px) {
    .categories-grid {
        grid-template-columns: repeat(1, 1fr);
        gap: 16px;
    }
}

.category-card {
    display: block;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
}

.category-hero {
    height: 121px;
    overflow: hidden;
}

.category-hero img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

.category-list {
    background: #F2F3F3;
    padding: 24px 20px;
    position: relative;
    height: 300px;
    display: flex;
    flex-direction: column;
}

.category-list:after {
    content: '';
    display: block;
    width: 100%;
    height: 39px;
    background: linear-gradient(180deg, rgba(242, 243, 243, 0), rgba(242, 243, 243, 0.9));
    position: absolute;
    bottom: 24px;
    left: 0px;
}

.category-list-wrapper {
    height: 190px;
    overflow: auto;
    scrollbar-width: thin;
    scrollbar-color: #959696 #D9D9D9;  
    padding-bottom: 40px; 
}

.category-list-wrapper::-webkit-scrollbar {
    width: 7px;
}

.category-list-wrapper::-webkit-scrollbar-track {
    background: #D9D9D9;
    border-radius: 4px;
}

.category-list-wrapper::-webkit-scrollbar-thumb {
    background-color: #959696;
    border-radius: 4px;
}

.category-list h3 {
    margin: 0 0 20px;
    color: #40C1AC!important;
    font-size: 28px;
    line-height: 42px;
}

.category-list h3 a {
    color: #40C1AC!important;
    text-decoration: none;
}

.category-list h3 a:hover {
    text-decoration: underline;
}

.category-post-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.category-post-links li + li {
    margin-top: 20px;
}

.category-post-links a {
    display: block;
    padding-right: 20px;
}

.category-post-links a:after {
    content: "";
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-left: 8px;
    background-color: transparent;
    background-image: url("/wp-content/themes/ais-healthcare/images/ais-icon_arrow-right--blue-trans.svg");
    background-size: 10px 10px;
}

.category-post-links a:hover {
    text-decoration: none;
}

.category-posts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.post-card {
    border: 1px solid #e2e2e2;
    border-radius: 8px;
    overflow: hidden;
}

.post-card img {
    width: 100%;
    height: auto;
    display: block;
}

.post-card h3 {
    margin: 12px;
}

.wp-block-image.aligncenter {
    text-align: center;
}

.column-header {
    min-height: 57px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-columns {
    margin-left: 0!important;
    margin-right: 0!important;
    padding: 38px 14px;
}

@media (max-width: 767px) {
    .contact-columns {
        padding: 20px 0;
    }
}