/*
 * CSS for HBP News Highlight Element
 */

.hbp-nh-wrapper {
    padding: 30px 0;
}
.hbp-nh-row {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
}

/* --- Left Column: Big Post --- */
.hbp-nh-big-post {
    display: block;
    margin-bottom: 20px;
}
.hbp-nh-img-wrap {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 20px;
}
.hbp-nh-img-bg {
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    background-size: cover;
    background-position: center;
    transition: transform 0.4s ease;
}
.hbp-nh-img-wrap:hover .hbp-nh-img-bg {
    transform: scale(1.05);
}
.hbp-nh-cat-text {
    margin-bottom: 8px;
}
.hbp-nh-cat-text a {
    color: #008000;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hbp-nh-content {
    padding-right: 20px;
}
.hbp-nh-title {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 12px;
}
.hbp-nh-title a {
    color: #333;
    transition: color 0.3s;
}
.hbp-nh-title a:hover {
    color: #008000;
}
.hbp-nh-excerpt {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hbp-nh-meta {
    display: flex;
    align-items: center;
    gap: 15px;
}
.hbp-nh-meta span {
    font-size: 13px;
    color: #888;
}

/* --- Right Column: Small Posts --- */
.hbp-nh-right-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.hbp-nh-small-post {
    display: flex;
    gap: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}
.hbp-nh-small-post:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.hbp-nh-small-img-wrap {
    flex-shrink: 0;
    width: 140px;
    position: relative;
    border-radius: 4px;
    overflow: hidden;
}
.hbp-nh-small-img-bg {
    width: 100%;
    padding-top: 65%;
    background-size: cover;
    background-position: center;
    transition: transform 0.4s ease;
}
.hbp-nh-small-img-wrap:hover .hbp-nh-small-img-bg {
    transform: scale(1.05);
}
.hbp-nh-cat-text-small {
    margin-bottom: 5px;
}
.hbp-nh-cat-text-small a {
    color: #008000;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}
.hbp-nh-small-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.hbp-nh-title-small {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 8px;
}
.hbp-nh-title-small a {
    color: #333;
    transition: color 0.3s;
}
.hbp-nh-title-small a:hover {
    color: #008000;
}

/* --- Slider Adjustments --- */
.hbp-nh-left-slider .flickity-page-dots {
    bottom: -15px;
}
.hbp-nh-left-slider .flickity-page-dots .dot {
    background: #ccc;
    opacity: 1;
}
.hbp-nh-left-slider .flickity-page-dots .dot.is-selected {
    background: #e30000; /* Red dot like in the image */
}

/* --- Scrollable Right Column on Desktop --- */
@media (min-width: 850px) {
    .hbp-nh-row > .col {
        display: flex;
        flex-direction: column;
    }
    .hbp-nh-right-col-inner {
        flex: 1;
        position: relative;
        min-height: 300px;
    }
    .hbp-nh-right-list {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        overflow-y: auto;
        padding-right: 15px;
    }
    /* Custom Scrollbar for Right List */
    .hbp-nh-right-list::-webkit-scrollbar {
        width: 4px;
    }
    .hbp-nh-right-list::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 4px;
    }
    .hbp-nh-right-list::-webkit-scrollbar-thumb {
        background: #ccc;
        border-radius: 4px;
    }
    .hbp-nh-right-list::-webkit-scrollbar-thumb:hover {
        background: #008000;
    }
}

/* --- Responsive --- */
@media (max-width: 849px) {
    .hbp-nh-content {
        padding-right: 0;
    }
    .hbp-nh-small-img-wrap {
        width: 120px;
    }
    .hbp-nh-title {
        font-size: 20px;
    }
    .hbp-nh-title-small {
        font-size: 15px;
    }
}
@media (max-width: 550px) {
    .hbp-nh-title {
        font-size: 18px;
    }
    .hbp-nh-excerpt {
        font-size: 14px;
        margin-bottom: 10px;
    }
    .hbp-nh-small-post {
        flex-direction: row;
        align-items: center;
        gap: 12px;
    }
    .hbp-nh-small-img-wrap {
        width: 100px;
    }
    .hbp-nh-small-img-bg {
        padding-top: 70%;
    }
    .hbp-nh-title-small {
        font-size: 14px;
        margin-bottom: 5px;
    }
    .hbp-nh-meta {
        gap: 8px;
    }
    .hbp-nh-meta span {
        font-size: 11px;
    }
}
