/* Content Hub - Become Unbreakable Section */
.content-hub {
    padding: 0;
    margin: 0;
    max-width: 1440px;
}

.content-hub-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 50px;
    gap: 20px;
}

.content-hub-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.2em;
    line-height: 17px;
    text-transform: uppercase;
    color: #4f4f4f;
    margin: 0;
}

.content-hub-title {
    font-family: 'DrukWide-Bold', 'Arial Black', sans-serif;
    font-size: 50px;
    font-weight: 800;
    letter-spacing: 0.25px;
    line-height: 52px;
    text-transform: uppercase;
    color: #121212;
    margin: 0;
    flex: 1;
}

.content-hub-action {
    display: flex;
    gap: 12px;
    align-self: flex-start;
    margin-top: 8px;
}

.content-hub-btn {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 17px;
    text-transform: uppercase;
    padding: 13.5px 24px;
    border-radius: 22.7px;
    border: 1px solid rgba(0, 0, 0, 0.4);
    background-color: #fff;
    color: #121212;
    cursor: pointer;
    transition: all 0.4s ease-in-out;
    text-decoration: none;
    display: inline-block;
}

.content-hub-btn:hover {
    background-color: #121212;
    border-color: #121212;
    color: #fff;
}

.content-hub-btn.primary {
    background-color: #cf1019;
    border-color: #cf1019;
    color: #fff;
}

.content-hub-btn.primary:hover {
    background-color: #dd585f;
    border-color: #dd585f;
}

/* Grid Layout for Cards */
.content-hub-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.content-hub-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: #f3f3f3;
    transition: all 0.3s ease-in-out;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

/* Horizontal Scroll Container */
.content-hub-scroll-container {
    overflow-x: scroll;
    overflow-y: hidden;
    margin-top: 40px;
    padding-bottom: 20px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter: stable both-edges;
    scrollbar-color: #c3D500 #f0f0f0;
    /* FF */
}

.content-hub-scroll-container::-webkit-scrollbar {
    height: 8px;
}

.content-hub-scroll-container::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 4px;
}

.content-hub-scroll-container::-webkit-scrollbar-thumb {
    background: #c3D500;
    border-radius: 4px;
}

.content-hub-scroll-container::-webkit-scrollbar-thumb:hover {
    background: #c3D500;
}

.content-hub-scroll-track {
    display: flex;
    gap: 24px;

    min-width: min-content;
}

.content-hub-scroll-card {
    flex: 0 0 320px;
    min-width: 320px;
    display: flex;
    flex-direction: column;
    background-color: #f2f2f2;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    height: 550px;
    position: relative;
}

.content-hub-scroll-card:hover .content-hub-card-image {
    transform: scale(1.1);
}

/* Hover effect - image zoom only */

/* Scroll Control Buttons */
.content-hub-scroll-controls {
    display: none;
    gap: 12px;
    margin-top: 20px;
    justify-content: center;
}

.scroll-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 2px solid #cf1019;
    background-color: transparent;
    color: #cf1019;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease-in-out;
    font-weight: bold;
    font-size: 20px;
}

.scroll-btn:hover:not(:disabled) {
    background-color: #cf1019;
    color: #fff;
    transform: scale(1.1);
}

.scroll-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.content-hub-card-image {
    width: 100%;
    height: 244px;
    background-position: 50%;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    overflow: hidden;
    transition: transform 0.5s ease;
    flex-shrink: 0;
}

.content-hub-scroll-card:hover .content-hub-card-image {
    transform: scale(1.1);
}

.content-hub-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.content-hub-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    transition: all 0.5s ease;
    background-color: #f2f2f2;
}

.content-hub-card-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 800;
    line-height: 26px;
    color: #121212;
    margin: 0 0 16px 0;
    text-transform: capitalize;
}

.content-hub-card-excerpt {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 21px;
    color: #4f4f4f;
    margin: 0 0 auto 0;
    flex-grow: 1;
}

.content-hub-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid #e0e0e0;
    flex-shrink: 0;
}

.content-hub-card-link {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 15px;
    text-transform: uppercase;
    color: #121212;
    text-decoration: none;
    transition: color 0.3s ease, text-decoration-color 0.3s ease;
}

/* Underline the READ MORE when the card or the link is hovered */
.content-hub-scroll-card:hover .content-hub-card-link,
.content-hub-card:hover .content-hub-card-link,
.content-hub-card-link:hover {
    color: #c3D500;
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-thickness: 2px;
}

/* Responsive Design */
@media screen and (max-width: 1440px) {
    .content-hub {
        padding: 0;
        margin: 0;
    }

    .content-hub-title {
        font-size: 42px;
        line-height: 48px;
    }
}

@media screen and (max-width: 1025px) {
    .content-hub {
        padding: 0;
        margin: 0;
    }

    .content-hub-header {
        flex-direction: column;
        margin-bottom: 40px;
    }

    .content-hub-action {
        width: 100%;
        justify-content: flex-start;
    }

    .content-hub-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .content-hub-scroll-card {
        flex: 0 0 300px;
        min-width: 300px;
    }

    .content-hub-title {
        font-size: 32px;
        line-height: 38px;
    }
}

@media screen and (max-width: 768px) {
    .content-hub {
        padding: 0;
        margin: 0;
    }

    .content-hub-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .content-hub-scroll-container {
        margin-top: 30px;
    }

    .content-hub-scroll-track {
        gap: 16px;
        padding-right: 20px;
    }

    .content-hub-scroll-card {
        flex: 0 0 280px;
        min-width: 280px;
    }

    .content-hub-card-image {
        height: 200px;
    }

    .content-hub-card-content {
        padding: 16px;
    }

    .content-hub-title {
        font-size: 28px;
        line-height: 33px;
    }

    .content-hub-subtitle {
        font-size: 12px;
    }
}

/* Animation for cards on scroll */
@keyframes fadeUpSmall {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-hub-card {
    animation: fadeUpSmall 0.6s cubic-bezier(0.25, 0.25, 0.75, 0.75) forwards;
    opacity: 0;
}

.content-hub-card:nth-child(1) {
    animation-delay: 0s;
}

.content-hub-card:nth-child(2) {
    animation-delay: 0.1s;
}

.content-hub-card:nth-child(3) {
    animation-delay: 0.2s;
}

.content-hub-card:nth-child(4) {
    animation-delay: 0.3s;
}

.content-hub-card.animated {
    animation: fadeUpSmall 0.6s cubic-bezier(0.25, 0.25, 0.75, 0.75) forwards;
    opacity: 1;
}