/**
 * Home Hero Cards Block Styles
 */

/* Heading Section */
.homeherocards-heading {
    text-align: center;
    max-width: 1000px;
    margin: 0 auto 60px;
}

.homeherocards-logo {
    margin-bottom: 30px;
}

.homeherocards-logo img {
    max-width: 200px;
    height: auto;
    margin: 0 auto;
    display: block;
}

.homeherocards-title {
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 2.5rem;
}

.homeherocards-copy {
    font-size: 1rem;
    line-height: 1.6;
    max-width: 700px;
    margin: auto;
}

/* Cards Container */
.homeherocards-cards-container {
    margin: 0 auto;
}

.homeherocards-cards-row {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    align-items: stretch;
}

/* Card Columns */
.homeherocards-card-col-1 {
    width: 100%;
    padding: 0;
}

.homeherocards-card-col-2 {
    width: calc(50% - 15px);
    padding: 0;
}

.homeherocards-card-col-3 {
    width: calc(33.333% - 20px);
    padding: 0;
}

.homeherocards-card-col-4 {
    width: calc(25% - 22.5px);
    padding: 0;
}

/* Card Styling */
.homeherocards-card {
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    padding: 0;
    position: relative;
    border-radius: 15px 15px 0 0;

}

.homeherocards-card-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    z-index: 1;
    border-radius: 15px 15px 0 0;
    overflow: hidden;
}

.homeherocards-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.homeherocards-card:hover {
    transform: scale(1.03);
    z-index: 10;
}

/* Card Image */
.homeherocards-card-image {
    border-bottom: none;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.homeherocards-card-image img {
    width: calc(100% - 30px);
    height: auto;
    display: block;
    margin: 15px auto;
    border: 3px solid var(--secondary);
    border-radius: 15px 15px 0 0;
    margin: 0;
    border-bottom: 0;
    aspect-ratio: 16/9;
    object-fit: cover;
}

/* Card Content */
.homeherocards-card-content {
    border: 1px solid #E3E3E3;
    border-radius: 10px;
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.homeherocards-card-title {
    color: #333;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.homeherocards-card-copy {
    margin-bottom: 20px;
    flex-grow: 1;
}

.homeherocards-card-copy ul li {
    padding: 5px;
}

.homeherocards-card-copy ul br {
    display: none;
}

/* Card Link */
.homeherocards-card-link {
    color: var(--secondary);
    text-decoration: none;
    display: inline-block;
    padding: 10px;
    border-bottom: 2px solid var(--tertiary);
    font-weight: 600;
    transition: all 0.3s ease;
    max-width: fit-content;
    margin: auto;
    text-align: center;
}

.homeherocards-card-link i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.homeherocards-card:hover .homeherocards-card-link {
    color: var(--tertiary);
}

.homeherocards-card:hover .homeherocards-card-link i {
    transform: translateX(5px);
}

/* Hover effects for image and content */

.homeherocards-card .homeherocards-card-image img, .homeherocards-card .homeherocards-card-content {
    transition: transform 0.3s ease;
}

.homeherocards-card:hover .homeherocards-card-image img {
    transform: scale(1.2);
    border: none;
}


.homeherocards-card:hover .homeherocards-card-content {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

/* Responsive Styles */
@media (max-width: 1199px) {
    .homeherocards-card-col-4 {
        width: calc(33.333% - 20px);
    }
}

@media (max-width: 991px) {

    .homeherocards-card-col-3,
    .homeherocards-card-col-4 {
        width: calc(50% - 15px);
    }

    .homeherocards-heading {
        margin-bottom: 40px;
    }

    .homeherocards-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 767px) {

    .homeherocards-card-col-2,
    .homeherocards-card-col-3,
    .homeherocards-card-col-4 {
        width: 100%;
    }

    .homeherocards-cards-row {
        gap: 20px;
    }

    .homeherocards-heading {
        margin-bottom: 30px;
    }

    .homeherocards-title {
        font-size: 1.8rem;
    }

    .homeherocards-card-content {
        padding: 20px;
    }
}