
html {
    scroll-behavior: smooth;
}

section {
    scroll-margin-top: 100px;
}

h2 {
    line-height: 45px;
}

h2:after {
    display: none;
}

/* HERO */
.buyhub-hero {
    position: relative;
    min-height: 610px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
}

.buyhub-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
}

.buyhub-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
    color: #fff;
}

.buyhub-hero h1 {
    font-size: 56px;
    font-weight: 400 !important;
    margin-bottom: 25px;
    color: #fff !important;
}

.buyhub-hero-copy,
.buyhub-hero-copy p {
    max-width: 620px;
    margin: 0 auto 30px;
    font-size: 15px;
    line-height: 1.45;
    font-weight: 600;
    text-align: justify;
    color: #fff !important;
}

/* HERO BUTTONS */
.buyhub-hero-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    max-width: 430px;
    margin: 0 auto;
}

.buyhub-secondary-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    width: 100%;
}

.buyhub-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 13px 28px;
    border: 1px solid #fff;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s ease;
}

.buyhub-btn:hover {
    color: #fff;
    text-decoration: none;
}

.buyhub-btn-primary {
    width: 100%;
    min-width: 100%;
    font-size: 15px;
    background: transparent;
    border: 1px solid #fff;
}

.buyhub-btn-small {
    width: 100%;
    min-width: 100%;
    font-size: 12px;
    padding: 11px 18px;
}

.buyhub-secondary-actions .buyhub-btn-small:first-child {
    background: #876140;
    border-color: #876140;
}

.buyhub-secondary-actions .buyhub-btn-small:last-child {
    background: #2D4D5A;
    border-color: #2D4D5A;
}

.buyhub-secondary-actions .buyhub-btn-small:first-child:hover,
.buyhub-secondary-actions .buyhub-btn-small:last-child:hover {
    background: transparent;
}

/* FEATURED VENDORS */
.buyhub-featured-vendors {
    background: #F3F0ED;
    padding: 0;
    overflow: hidden;
}

.buyhub-featured-vendors .container {
    width: 100%;
    max-width: none;
    padding: 0;
}

.buyhub-featured-layout {
    display: grid;
    grid-template-columns: minmax(0, 67%) minmax(360px, 40%);
    gap: 0;
    align-items: stretch;
}

/* LEFT COLUMN */
.buyhub-spotlight-column {
    position: relative;
    background: #F3F0ED;
    padding: 70px 70px 70px max(40px, calc((100vw - 1400px) / 2 + 40px));
}

.buyhub-spotlight-column::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 255px;
    bottom: 0;
    background: #00506A;
    z-index: 0;
}

.buyhub-spotlight-column > * {
    position: relative;
    z-index: 2;
}

/* RIGHT COLUMN */
.buyhub-new-vendor-column {
    background: #E5DBD2;
    padding: 70px max(40px, calc((100vw - 1400px) / 2 + 40px)) 70px 70px;
}

.buyhub-new-vendor-column > * {
    position: relative;
    z-index: 2;
}

/* HEADINGS */
.buyhub-featured-vendors h2 {
    font-size: 40px !important;
    font-weight: 400 !important;
    line-height: 1.15;
    margin-top: 0;
    margin-bottom: 30px;
    color: #00506A;
}

.buyhub-new-vendor-column h2 {
    color: #9A7559;
}

/* SPOTLIGHT GRID */
.buyhub-spotlight-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px;
}

.buyhub-spotlight-card,
.buyhub-new-vendor-box {
    background: #fff;
}

.buyhub-spotlight-card img {
    width: 100%;
    height: 300px !important;
    object-fit: cover;
    display: block;
}

.buyhub-spotlight-card-content {
    padding: 28px;
}

.buyhub-spotlight-card h3,
.buyhub-new-vendor-item h3 {
    font-size: 28px;
    font-weight: 400 !important;
    color: #00506A;
    margin-bottom: 14px;
}

.buyhub-spotlight-card-content,
.buyhub-spotlight-card-content p {
    font-size: 15px;
    line-height: 1.45;
}

/* NEW VENDOR BOX */
.buyhub-new-vendor-box {
    padding: 45px 38px;
}

.buyhub-new-vendor-item {
    padding: 0 0 28px;
    margin-bottom: 28px;
    border-bottom: 1px solid #8f8f8f;
}

.buyhub-new-vendor-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
    margin-bottom: 0;
}

.buyhub-new-vendor-category {
    font-size: 13px;
    color: #666;
    margin-bottom: 2px;
}

.buyhub-new-vendor-website a {
    color: #00506A;
    font-size: 14px;
}

/* DIRECTORY */
.buyhub-programs {
    background: #F3F0ED;
    padding: 85px 0 120px;
}

.buyhub-programs .buyhub-section-title {
    font-size: 42px !important;
    font-weight: 400 !important;
    text-align: center;
    margin-bottom: 55px;
    color: #00506A;
}

/* FILTERS */
.buyhub-mobile-category-select {
    display: none;
}

.buyhub-desktop-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.buyhub-mobile-selected-category {
    margin-bottom: 20px;
}

.buyhub-mobile-selected-category,
.buyhub-mobile-selected-category.active,
.buyhub-mobile-selected-category:hover {
    background: linear-gradient(to left, #c59b4b 0%, #8b6f35 100%);
    color: #fff;
}

/* PROGRAM CARDS */
.buyhub-program-logo {
    max-width: 180px;
    max-height: 80px;
    object-fit: contain;
    object-position: left center;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px;
    padding: 10px;
}

.buyhub-program-grid {
    scroll-margin-top: 120px;
}

.buyhub-program-contact a {
    color: #333333;
}

.buyhub-program-contact a:hover {
    color: #E8D8AF;
}

.buyhub-program-contact p,
.buyhub-program-desc ul {
    font-size: 14px !important;
}

.buyhub-program-filter {
    grid-template-columns: 390px 1fr;
}

.buyhub-program-desc,
.buyhub-program-website,
.buyhub-btn {
    font-size: 16px;
}

.buyhub-filter-nav button,
.buyhub-program-category {
    font-size: 14px;
}

.buyhub-program-desc ul {
    padding-left: 1rem;
}

/* TABLET */
@media (max-width: 1199px) {
    .buyhub-featured-layout {
        grid-template-columns: minmax(0, 64%) minmax(320px, 36%);
    }

    .buyhub-spotlight-column {
        padding-right: 40px;
        padding-left: 40px;
    }

    .buyhub-new-vendor-column {
        padding-left: 40px;
        padding-right: 40px;
    }

    .buyhub-spotlight-column::before {
        top: 240px;
    }

    .buyhub-featured-vendors h2 {
        font-size: 34px !important;
    }
}

/* MOBILE */
@media (max-width: 767px) {
    .buyhub-programs {
    padding: 85px 0 40px;
}
    h2 {
        line-height: 1.2;
    }

    .buyhub-hero {
        min-height: 560px;
        padding: 80px 0;
    }

    .buyhub-hero h1 {
        font-size: 2.4em !important;
        line-height: 1.2em !important;
    }

    .buyhub-hero-copy {
        font-size: 14px;
    }

    .buyhub-hero-actions {
        max-width: 100%;
    }

    .buyhub-btn-primary,
    .buyhub-btn-small {
        min-width: 100%;
    }

    .buyhub-secondary-actions {
        grid-template-columns: 1fr;
    }

    .buyhub-featured-layout {
        display: block;
    }

    .buyhub-spotlight-column {
        padding: 45px 20px 50px;
    }

    .buyhub-spotlight-column::before {
        top: 210px;
    }

    .buyhub-featured-vendors h2 {
        font-size: 1.9em !important;
        margin-bottom: 35px;
    }

    .buyhub-spotlight-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .buyhub-new-vendor-column {
        padding: 45px 20px;
    }

    .buyhub-programs .buyhub-section-title {
        font-size: 1.9em !important;
    }

    .buyhub-filter-nav button {
        height: 50px;
        min-height: 50px;
    }

    .buyhub-filter-nav {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .buyhub-desktop-categories {
        display: none;
    }

    .buyhub-filter-nav > button[data-filter="all"] {
        width: 100%;
        min-height: 46px;
    }

    .buyhub-mobile-category-select {
        display: block;
        width: 100%;
        min-height: 46px;
        padding: 12px 44px 12px 35px;
        border: 1px solid #d7d7d7;
        background-color: #fff;
        color: #00506A;
        font-weight: 600;
        text-transform: uppercase;
        appearance: none !important;
        -webkit-appearance: none !important;
        border-radius: 0 !important;
        margin-bottom: 0;
        font-size: 14px;
        background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%2300506A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 16px center;
        background-size: 12px 8px;
    }

    .buyhub-mobile-selected-category {
        display: block;
        width: 100%;
        min-height: 46px;
        padding: 13px 16px;
        border: 0;
        background: linear-gradient(to left, #c59b4b 0%, #8b6f35 100%);
        color: #fff;
        font-weight: 700;
        text-align: center;
        text-transform: uppercase;
    }

    .buyhub-program-filter,
    .buyhub-program-grid {
        display: block !important;
        margin-top: 10px;
    }

    .buyhub-program-card {
        margin-bottom: 30px;
    }

    .buyhub-program-contact {
        word-break: keep-all;
        overflow-wrap: anywhere;
    }
}

/* HERO TEXT */
.buyhub-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 680px;
    text-align: center;
    color: #fff;
}

.buyhub-hero h1,
.buyhub-hero-copy,
.buyhub-hero-copy p {
    color: #fff !important;
}

/* HERO BUTTON LAYOUT */
.buyhub-hero-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    max-width: 520px;
    margin: 0 auto;
}

.buyhub-secondary-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    width: 100%;
}

/* BUTTON BASE */
.buyhub-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 13px 28px;
    border: 1px solid #fff;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s ease;
}

/* USE THE DIRECTORY */
.buyhub-btn-primary {
    width: 100%;
    min-width: 100%;
    font-size: 15px;
    background: transparent;
    border: 1px solid #fff;
}
.buyhub-btn-primary:hover {
    background: #ffffff26;
    border-color: #fff;
    color: #fff;
}

/* SMALL BUTTONS */
.buyhub-btn-small {
    width: 100%;
    min-width: 100%;
    font-size: 12px;
    padding: 11px 18px;
}

/* REQUEST FORM */
.buyhub-secondary-actions .buyhub-btn-small:first-child {
    background: #876140;
    border-color: #876140;
}

/* SIGNUP FORM */
.buyhub-secondary-actions .buyhub-btn-small:last-child {
    background: #2D4D5A;
    border-color: #2D4D5A;
}

/* HOVER */
.buyhub-secondary-actions .buyhub-btn-small:first-child:hover {
    background: transparent;
    border-color: #876140;
    color: #fff;
}

.buyhub-secondary-actions .buyhub-btn-small:last-child:hover {
    background: transparent;
    border-color: #2D4D5A;
    color: #fff;
}

/* MOBILE */
@media (max-width: 767px) {

    .buyhub-hero-actions {
        max-width: 100%;
    }

    .buyhub-secondary-actions {
        grid-template-columns: 1fr;
    }

}



/* post */

.buyhub-spotlight-swiper {
    width: 100%;
    overflow: hidden;
    padding-bottom: 40px;
}

.buyhub-spotlight-swiper .swiper-slide {
    height: auto;
}

.buyhub-spotlight-pagination {
    bottom: 0 !important;
}

.buyhub-spotlight-pagination .swiper-pagination-bullet {
    opacity: 0.35;
}

.buyhub-spotlight-pagination .swiper-pagination-bullet-active {
    opacity: 1;
}


.cos-pagination {
    bottom: 0 !important;
}

.cos-pagination .swiper-pagination-bullet {
    opacity: 0.35;
}

.cos-pagination .swiper-pagination-bullet-active {
    opacity: 1;
}



.buyhub-spotlight-swiper.has-pagination {
    padding-bottom: 70px;
}

.buyhub-spotlight-swiper .swiper-wrapper {
    align-items: stretch;
}

.buyhub-spotlight-swiper .swiper-slide {
    height: auto;
    display: flex;
}

.buyhub-spotlight-card {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.buyhub-spotlight-card-content {
    flex: 1;
}

.buyhub-spotlight-card-link {
    display: block;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.buyhub-spotlight-card-link:hover {
    text-decoration: none;
}

/* dots mobile */

.buyhub-spotlight-swiper {
    position: relative;
    padding-bottom: 40px;
}

.buyhub-spotlight-pagination.swiper-pagination {
    position: absolute;
    left: 0;
    right: 0;
    bottom:-5px !important;
    width: 100%;
    text-align: center;
    z-index: 5;
}

/* akam style dots */
.buyhub-spotlight-column .swiper-pagination-bullet {
	width: 20px;
	height: 20px;
	display: inline-block;
	border-radius: 100%;
	background: #D5BEAF;
	opacity: 1;
	border: 4px solid #2d4d5a;
	margin: 0px 6px;
}

.buyhub-spotlight-column .swiper-pagination-bullet.swiper-pagination-bullet-active {
	background: #fff;
	opacity: 1;
	border: 4px solid #D5BEAF;
}

/* hero buttons */

.buyhub-secondary-actions {
    display: flex;
    gap: 16px;
}

.buyhub-secondary-actions .buyhub-btn {
    flex: 1;
}

.buyhub-secondary-actions.single-button .buyhub-btn {
    width: 100%;
    flex: 0 0 100%;
}

.buyhub-pagination{
    display:none !important;
}


/* post spotlight */

.buyhub-spotlight-card div {
    padding: 0px;
}
.buyhub-spotlight-card-content {
    padding: 36px 26px 28px !important;
}

.buyhub-spotlight-card-content h3 {
    margin: 0 0 22px !important;
}

.buyhub-spotlight-excerpt p {
    margin: 0 0 24px !important;
}

.buyhub-read-more {
    display: inline-block;
    color: #d9b36a;
    font-weight: 700;
}

.buyhub-spotlight-card-content h3 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;

    overflow: hidden;
    text-overflow: ellipsis;

    line-height: 1.2;
    max-height: calc(1.2em * 2);

    word-break: normal;
    overflow-wrap: normal;
}

.buyhub-spotlight-card-content h3 {
    min-height: calc(1.2em * 2);
}

.page-template-template-hub .footer-area {
    margin-top: 4em;
}

.buyhub-program-contact u,
.buyhub-program-contact a {
    text-decoration: none !important;
}

.gform_validation_errors{
    display: none !important;
}


.case-studies-text h2{
    font-size: 41px;
    line-height: 48px !important;
}


.buyhub-page.buyhub-featured-vendors-off .buyhub-programs {
    padding: 85px 0 10px;
}

body.page-template-template-hub .gform_title:before {
    font-size: 0px;
    content: unset;
}


@media(min-width:768px) {
    .header-logo {
        position: inherit !important;
    }
    .case-studies-area {
            margin-top: 50px;
    }
    .case-studies-left h2, .formhub h2.gform_title{
        font-size: 42px!important;
    }
}   
@media(max-width:767px) {
        .header-wrapper {
        justify-content: left;
    }
        .header-left-part {
        display: block;
    }
    
    .case-studies-left h2 {
        text-align: center;
    }
    .buyhub-programs .buyhub-section-title{
        
        margin-bottom: 25px !important;
    }
    .buyhub-page.buyhub-featured-vendors-off .buyhub-programs {
        padding: 85px 0 50px;
    }
    .case-studies-text .common-button{
        font-size: 14px !important;
    }
    .wp-singular h2.gform_title, .wp-singular .case-studies-left h2{
        font-size: 1.9em !important;
    }
}