/* Comparison Hub Page Template */
.page-template-template-hub-page {
    overflow: clip;
}
#comparison-hub-page .section-hero {
    background-image: var(--hero-bg);
	background-size: cover;
    background-position: center left;
	padding: 100px 0 140px;
	text-align: left;
    position: relative;
}
#comparison-hub-page .section-hero:before {
    content:"";
    background: linear-gradient(90deg, rgba(48, 69, 152, 0.9) 0%, rgba(255, 255, 255, 0) 90%);
    width: 100%;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}
#comparison-hub-page .hero-content {
    position: relative;
    z-index: 1;
    display:flex;
    flex-direction: column;
    gap:20px;
}
#comparison-hub-page .hero-content h1,
#comparison-hub-page .hero-content p {
	color: var(--white);
	max-width: 640px;
}
#comparison-hub-page .section-hero h1 {
	font-size: 38px;
	font-weight: 600;
    line-height: 1.3;
    margin: 0;
}
#comparison-hub-page .section-hero p {
	font-size: 20px;
    font-weight: 400;
}
#comparison-hub-page .section-hero p:last-child {
    margin: 0;
}
#comparison-hub-page .section-hero .hero-text-link a {
    position: relative;
    display: inline-block;
    color:var(--white);
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    transition: all .25s ease;
}
#comparison-hub-page .section-hero .hero-text-link a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 3px;
    background: var(--yellow);
    transform: scaleX(1);
    transform-origin: left;
    transition: all .35s ease;
}
#comparison-hub-page .section-hero .hero-text-link a:hover::after,
#comparison-hub-page .section-hero .hero-text-link a:focus-visible::after {
    background: var(--white);
}
#comparison-hub-page .section-hero .hero-text-link a:hover,
.hero-text-link a:focus-visible {
    color: var(--white);
}
#comparison-hub-page .section-featured-comparisons,
#comparison-hub-page .section-calculator-case-study,
#comparison-hub-page .section-browse-articles {
    padding: 80px 0;
}
#comparison-hub-page .featured-comparisons-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 1fr);
    gap: 42px;
    align-items: start;
}
#comparison-hub-page .featured-comparison-main {
    display: flex;
    flex-direction: column;
}
#comparison-hub-page .featured-comparison-main > a:first-child {
    display: block;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 34px;
}
#comparison-hub-page .eyebow-comparison-main {
    font-weight: 700;
    color:var(--grey-mid);
    font-size: 18px;
}
#comparison-hub-page .featured-comparison-main img,
#comparison-hub-page .featured-comparison-small img {
    display: block;
    width: 100%;
    object-fit: cover;
}
#comparison-hub-page .featured-comparison-main img {
    aspect-ratio: 16 / 10.5;
    border-radius: 16px;
}
#comparison-hub-page .featured-comparison-main h2 {
    margin: 0 0 26px;
    font-size: 24px;
    font-weight: 700;
}
#comparison-hub-page .featured-comparison-main h2 a,
#comparison-hub-page .featured-comparison-small h3 a {
    text-decoration: none;
    color:var(--black)
}
#comparison-hub-page .featured-comparison-main h2 a:hover,
#comparison-hub-page .featured-comparison-small h3 a:hover {
    color: var(--blue);
}
#comparison-hub-page .featured-comparison-main p:not(.article-type):not(.article-meta):not(.eyebow-comparison-main) {
    margin: 0 0 28px;
    font-size: 20px;
    line-height: 1.55;
    color:#333;
}
#comparison-hub-page .article-meta {
    margin: 0 0 26px;
    color: var(--blue);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap:8px;
    text-transform: capitalize;
}
#comparison-hub-page .article-meta .meta-dot {
    display:inline-block;
    background:#797EA4;
    width:6px;
    height:6px;
    border-radius: 999px;
    position:relative;
    top:1px
}
#comparison-hub-page .featured-comparison-list {
    display: flex;
    flex-direction: column;
    gap: 70px;
    padding-top: 28px;
}
#comparison-hub-page .featured-comparison-small .featured-comparison-card-link {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
    color: inherit;
    text-decoration: none;
}
#comparison-hub-page .featured-comparison-small .article-title {
    display: block;
    margin: 0 0 10px;
    color: var(--black);
    font-size: 24px;
    line-height: 1.22;
    font-weight: 700;
    transition: color .25s ease;
}
#comparison-hub-page .featured-comparison-small .read-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--blue);
    font-size: 18px;
    line-height: 1;
}
#comparison-hub-page .featured-comparison-small .read-link svg {
    display: block;
    transition: transform .25s ease;
}
#comparison-hub-page .featured-comparison-small .featured-comparison-card-link:hover .article-title,
#comparison-hub-page .featured-comparison-small .featured-comparison-card-link:focus-visible .article-title {
    color: var(--blue);
}
#comparison-hub-page .featured-comparison-small .featured-comparison-card-link:hover .read-link svg,
#comparison-hub-page .featured-comparison-small .featured-comparison-card-link:focus-visible .read-link svg {
    transform: translateX(4px);
}
#comparison-hub-page .featured-comparison-small .article-thumb { 
    display: block; 
    overflow: hidden; 
    border-radius: 16px; 
} 
#comparison-hub-page .featured-comparison-small img { 
    aspect-ratio: 1 / 1; 
}
#comparison-hub-page .section-calculator-case-study {
    background-image: url("/wp-content/themes/knightsbridgefx/img/backgrounds/calculator-case-study.webp");
    background-size: cover;
    color: var(--white);
}
#comparison-hub-page .calculator-case-study-grid {
    display: grid;
    grid-template-columns: 1fr 424px;
    gap: 70px;
    align-items: start;
}
#comparison-hub-page .calculator-case-study-content h2 {
    margin: 0 0 22px;
    color: var(--white);
    font-size: 30px;
    line-height: 1.2;
    font-weight: 700;
}
#comparison-hub-page .calculator-case-study-content p {
    max-width: 700px;
    margin: 0 0 18px;
    color: var(--white);
    font-size: 20px;
    line-height: 1.55;
}
#comparison-hub-page .case-study-image {
    display: block;
    margin-top: 34px;
    overflow: hidden;
}
#comparison-hub-page .case-study-image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius:16px;
}
#comparison-hub-page .case-study-testimonial {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 24px;
    margin-top: 34px;
    padding: 28px 155px 28px 32px;
    border-radius: 14px;
    background: #EDF1F7;
    color: var(--black);
}
#comparison-hub-page .case-study-testimonial img {
    position: absolute;
    top: -42px;
    right: 34px;
    width: 98px;
    height: 98px;
    border-radius: 50%;
    object-fit: cover;
}
#comparison-hub-page .case-study-testimonial .testimonial-text,
#comparison-hub-page .case-study-testimonial .testimonial-text p {
    color: var(--black);
    font-size: 18px;
    line-height: 1.5;
}
#comparison-hub-page .case-study-testimonial .testimonial-text p {
    margin: 0 0 14px;
}
#comparison-hub-page .case-study-testimonial .testimonial-text p:last-child {
    margin-bottom: 0;
}
#comparison-hub-page .case-study-testimonial a {
    color: var(--blue);
    text-decoration: underline;
    text-underline-offset: 3px;
}
#comparison-hub-page .calculator-case-study-sidebar {
    display: flex;
    flex-direction: column;
    gap: 32px;
    position: sticky;
    top: 120px;
}
#comparison-hub-page .calculator-case-study-sidebar .calculator-currency.basic .calculator-currency-right {
    max-width: 100%;
}
#comparison-hub-page .trust-card {
    padding: 28px 20px 26px;
    border-radius: 18px;
    background: #EDF1F7;
    color: var(--blue);
    text-align: center;
}
#comparison-hub-page .trust-card h3 {
    margin: 0 0 24px;
    color: var(--blue);
    font-size: 16px;
    line-height: 1.3;
    font-weight: 700;
}
#comparison-hub-page .trust-card-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
#comparison-hub-page .trust-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 0;
}
#comparison-hub-page .trust-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-bottom: 4px;
    border-radius: 50%;
    background: var(--white);
}
#comparison-hub-page .trust-icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}
#comparison-hub-page .trust-stat {
    line-height: 1.3;
}
#comparison-hub-page .trust-stat strong {
    display: block;
    color: var(--blue);
    font-size: 14px;
    font-weight: 600;
}
#comparison-hub-page .trust-stat span:not(.trust-icon) {
    color: var(--blue);
    font-size: 14px;
}
#comparison-hub-page .browse-articles-header {
    display: flex;
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 36px;
}
#comparison-hub-page .browse-articles-header * {
    width:auto
}
#comparison-hub-page .browse-articles-header h2 {
    margin: 0;
    font-size: 30px;
}
#comparison-hub-page .article-filter {
    display: flex;
    align-items: center;
    gap: 10px;
}
#comparison-hub-page .article-filter label {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
}
#comparison-hub-page .article-filter select {
    min-width: 110px;
    height: 38px;
    padding: 0 38px 0 14px;
    border: 1px solid #E3E5F2;
    border-radius: 8px;
    background-color: #fff;
    color: #333;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;

    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    background-image: url("data:image/svg+xml,%3Csvg width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    background-size: 14px;
}
#comparison-hub-page .article-filter select:focus-visible,
#comparison-hub-page .article-filter select:focus {
    border: 1px solid #333;
}
#comparison-hub-page .article-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 34px 24px;
    align-items: stretch;
}
#comparison-hub-page .article-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #D2D7E8;
    border-radius: 16px;
    padding:0;
    background: #fff;
    transition:
        opacity .25s ease,
        transform .25s ease,
        border-color .25s ease,
        box-shadow .25s ease;
}
#comparison-hub-page .article-card.is-hiding {
    opacity: 0;
    transform: translateY(12px);
}
#comparison-hub-page .article-card.is-hidden {
    display: none;
}
#comparison-hub-page .article-card:hover {
    border-color: var(--blue);
    box-shadow: 0 14px 34px rgba(31, 41, 55, .09);
}
#comparison-hub-page .article-card > a:first-child {
    display: block;
    overflow: hidden;
}
#comparison-hub-page .article-card img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10.5;
    object-fit: cover;
    transition: transform .35s ease;
}
#comparison-hub-page .article-card:hover img {
    transform: scale(1.035);
}
#comparison-hub-page .article-card .article-type {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 110px;
    width: fit-content;
    margin: 18px 18px 14px;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 14px;
    line-height: 1;
    font-weight: 700;
}
#comparison-hub-page .article-card h3 {
    margin: 0 18px 18px;
    font-size: 30px;
    line-height: 1.25;
    font-weight: 700;
}
#comparison-hub-page .article-card h3 a {
    color: var(--black);
    text-decoration: none;
}
#comparison-hub-page .article-card h3 a:hover {
    color: var(--blue);
}
#comparison-hub-page .article-card > p:not(.article-type):not(.article-meta) {
    margin: 0 18px 24px;
    color: #333;
    font-size: 15px;
    line-height: 1.55;
}
#comparison-hub-page .article-card .article-meta {
    margin: auto 18px 20px;
    color: var(--blue);
    font-size: 14px;
    line-height: 1;
}
#comparison-hub-page .load-more-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 38px;
}
#comparison-hub-page .article-type {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin: 0 0 16px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    line-height: 1;
    font-weight: 700;
    text-transform: capitalize;
}
#comparison-hub-page .article-card {
    opacity: 1;
    transform: translateY(0);
}
#comparison-hub-page .article-card.is-hiding {
    opacity: 0;
    transform: translateY(14px);
}


@media (max-width: 991px) {
    #comparison-hub-page .section-featured-comparisons,
    #comparison-hub-page .section-calculator-case-study,
    #comparison-hub-page .section-browse-articles {
        padding: 60px 0;
    }
    #comparison-hub-page .section-hero {
        background-image: var(--hero-bg-mobile);
    }
    #comparison-hub-page .section-hero:before {
        background: linear-gradient(90deg, rgba(48, 69, 152, 0.8) 60%, rgba(48, 69, 152, 0.2) 100%);
    }
    #comparison-hub-page .section-hero h1 {
        font-weight: 700;
    }
    #comparison-hub-page .featured-comparisons-grid {
        grid-template-columns: 1fr;
        gap: 45px;
    }
    #comparison-hub-page .featured-comparison-main h2,
    #comparison-hub-page .featured-comparison-main p:not(.article-type):not(.article-meta):not(.eyebow-comparison-main),
    #comparison-hub-page .article-meta {
        margin-bottom: 20px;
    }
    #comparison-hub-page .featured-comparison-list {
        gap: 34px;
        padding-top: 0;
    }
    #comparison-hub-page .calculator-case-study-grid {
        grid-template-columns: 1fr;
        gap: 45px;
    }
    #comparison-hub-page .case-study-testimonial {
        margin-top: 60px;
        padding:60px 28px 28px;
    }
    #comparison-hub-page .case-study-testimonial img {
        right:unset;
        width:78px;
        height: 78px;
        left: calc(50% - 39px);
    }
    #comparison-hub-page .case-study-testimonial .testimonial-text br {
        display: none;
    }
    #comparison-hub-page .calculator-case-study-content {
        max-width: none;
    }
    #comparison-hub-page .calculator-case-study-sidebar {
        position: static;
        max-width: 420px;
        margin: 0 auto;
        width: 100%;
    }
    #comparison-hub-page .article-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .featured-comparison-main .cta-wrapper .btn-cta {
        font-size: 16px;
        padding: 19px 39px;
    }
    #comparison-hub-page .featured-comparison-small {
        grid-template-columns: 64px minmax(0, 1fr);
        gap: 18px;
    }
    #comparison-hub-page .featured-comparison-small h3 {
        font-size: 20px;
    }
    #comparison-hub-page .featured-comparison-small .read-link {
        font-size: 16px;
    }
    #comparison-hub-page .calculator-case-study-content p {
        font-size: 16px;
    }
    #comparison-hub-page .case-study-testimonial {
        display: block;
        padding: 72px 22px 24px;
    }
    #comparison-hub-page .case-study-testimonial img {
        top: -36px;
        left: 22px;
        right: auto;
        width: 84px;
        height: 84px;
    }
    #comparison-hub-page .article-card-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width:640px) {
    #comparison-hub-page .browse-articles-header {
        align-items: flex-start;
        flex-direction: column;
    }
    #comparison-hub-page .article-filter {
        width: 100%;
    }
    #comparison-hub-page .article-filter label {
        width:80px
    }
    #comparison-hub-page .article-filter select {
        width:calc(100% - 80px)
    }
}

@media (max-width: 460px) {
    #comparison-hub-page .cta-wrapper .cta-button {
        display: block;
        width: 100%;
    }
    #comparison-hub-page .calculator-case-study-sidebar .calculator-currency.basic .calculator-currency-right {
        width:100%;
    }
    #comparison-hub-page .trust-stat span:not(.trust-icon) {
        font-size: 13px;;
    }
}