/* Navigation */
.hcs-nav {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    gap: 20px;
    padding: 40px 20px;
    flex-wrap: wrap;
}

.hcs-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 150px;
    max-width: 170px;
}

.hcs-nav-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
    margin-bottom: 10px;
}

.hcs-nav-title {
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 10px;
    color: #000;
    font-family: 'Cinzel';
    min-height: 4rem;
}

.hcs-nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    border: 2px solid #000;
    border-radius: 3px;
    text-decoration: none;
    color: #000000;
    font-weight: bold;
    transition: all 0.3s ease;
}

.hcs-nav-link:hover {
    background: #000;
    color: #fff;
}

/* Content sections */
.hcs-content {
    display: grid;
    gap: 45px;
    padding: 0 20px 40px;
}

/* Grid layout (default) */
.hcs-block[data-layout="grid"] .hcs-content {
    grid-template-columns: repeat(2, 1fr);
}

/* List layout */
.hcs-block[data-layout="list"] .hcs-content {
    grid-template-columns: 1fr;
    max-width: 1200px;
    margin: 0 auto;
}

.hcs-section {
    position: relative;
    background-size: auto 50%;
    background-position: bottom right;
    background-repeat: no-repeat;
    background-attachment: local;
    min-height: 300px;
    display: flex;
    align-items: stretch;
    overflow: hidden;
}

.hcs-block[data-layout='list'] .hcs-section {
    background-size: auto 85%;
}

.hcs-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    mix-blend-mode: multiply;
}

.hcs-section-content {
    position: relative;
    z-index: 2;
    padding: 40px;
    color: #fff;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.hcs-block[data-layout='list'] .hcs-section-content {
    width: 70%;
}

.hcs-section-header {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.hcs-section-icon {
    width: 50px;
    height: 50px;
    object-fit: contain;
    filter: invert(1);
}

/* When overlay is applied, render header icons/images as black */
.hcs-section.has-overlay .hcs-section-icon,
.hcs-section.has-overlay .hcs-section-header img {
    /* Make the image fully black (silhouette) */
    filter: invert(0) !important;
}
.hcs-section.has-overlay .hcs-overlay {
    background-color: #ABC5D7 !important;
}

.hcs-section-title {
    font-size: 1.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin: 0;
    font-family: 'Cinzel';
    width: 80%;
}

.hcs-section-text {
    font-size: 1rem;
    font-family: 'Roboto';
    line-height: 1.6;
    flex-grow: 2;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
}

.hcs-section-text p {
    margin: 0 0 15px 0;
}

.hcs-section-text p:last-child {
    margin-bottom: 0;
}

.hcs-section-text ul {
    margin: 0 1rem 0;
}

.hcs-section-text ul li {
    margin-bottom: 10px;    
}

/* Prev/Next arrows placed at bottom center of each section */
.hcs-section-controls {
    display: none;
}

/* Lighter/smaller on narrow screens */
/* @media (max-width: 768px) {
    .hcs-section-controls { bottom: 12px; gap: 10px; }
    .hcs-section-arrow { width: 36px; height: 36px; font-size: 1rem; }
} */

/* List layout specific styles */
/* .hcs-block[data-layout="list"] .hcs-section {
    min-height: 250px;
}

.hcs-block[data-layout="list"] .hcs-section-content {
    max-width: 800px;
} */

/* responsive styles */
@media (max-width: 1366px) {
    .hcs-nav-item {
        min-width: 120px;
        max-width: 120px;
    }

    .hcs-nav-title {
        font-size: 0.75rem;
        line-height: 1rem;
        min-height: 3rem;
    }

    .hcs-section-title {
        font-size: 1.25rem;
    }

    .hcs-section-text {
        font-size: .875rem;
        line-height: 1.5rem;
    }
    
}

@media (max-width: 1023px) {
    .hcs-nav-title {
        display: none;
    }
    .hcs-nav-item {
        min-width: auto;
        max-width: unset;
    }
    .hcs-nav-link {
        width: 1rem;
        height: 1rem;
        border: 1px solid #000;
        font-weight: 400;
    }

    /* Force list layout on mobile */
    .hcs-content {
        grid-template-columns: 1fr !important;
        padding: 0 15px 30px;
    }

    .hcs-section {
        min-height: 250px;
        background-size: auto 65%;
    }

    .hcs-block[data-layout='list'] .hcs-section {
        background-size: auto 60%;
    }

    .hcs-section-content {
        padding: 30px 25px 90px;
        width: 100% !important;
    }

    .hcs-section-icon {
        width: 40px;
        height: 40px;
    }

    .hcs-section-title {
        font-size: 20px;
    }

    .hcs-section-text {
        font-size: 14px;
    }

    .hcs-section-controls {
        position: absolute;
        bottom: 2.5rem;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        gap: 14px;
        align-items: center;
        z-index: 4;
    }
    .hcs-section-arrow {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 24px;
        height: 24px;
        background: none transparent;
        color: #FFF;
        text-decoration: none;
        font-size: 3rem;
        line-height: 1;
        font-weight: 100;
    }

    .hcs-section-arrow:hover {
        color: #000;
    }

}

@media (max-width: 768px) {
    .hcs-nav {
        gap: 15px;
        padding: 30px 15px;
    }
    .hcs-nav-item {
        position: relative;
    }
    .hcs-nav-icon {
        width: 28px;
        height: 28px;
        margin: 0;
        position: relative;
    }
    .hcs-nav-link {
        position: absolute;
        width: 100%;
        height: 100%;
        left: 0;
        top: 0;
        border: none;
        font-size: 0;
    }
    .hcs-nav-link:hover {
        background: none;
    }
    .hcs-section-header {
        align-items: center;
    }
    .hcs-section-title {
        text-align: center;
    }
    .hcs-section-text {
        font-size: 13px;
        line-height: 20px;
        justify-content: flex-start;
        text-align: center;
    }
    .hcs-section-text ul {
        margin: 0 auto 0;
    }
    .hcs-section-text ul li {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .hcs-nav {
        gap: 10px;
        padding: 20px 10px;
    }

    .hcs-content {
        padding: 0 0 30px;
    }

    .hcs-section-content {
        padding: 25px 20px 75px;
    }

    .hcs-section-title {
        font-size: 18px;
    }
}
