/* Financial Brands Hub Block Styles */
.financial-brands-hub-block {
	margin-left: calc(50% - (var(--global-vw, 100vw) / 2));
    margin-right: calc(50% - (var(--global-vw, 100vw) / 2));
    max-width: 100vw;
    width: var(--global-vw, 100vw);
    padding: 60px 20px 0;
    background: #f8f9fa;
}

.financial-brands-hub-container {
    width: 100%;
}

.financial-brands-hub-content {
    text-align: center;
}

/* Header Styles */
.hub-title {
    font-size: 2.1rem;
    font-weight: 700;
    color: #474747;
    margin-bottom: 16px;
    line-height: 1.2;
}

.hub-subtitle {
    font-size: 1.2rem;
    color: #474747;
    margin-bottom: 40px;
    font-weight: 400;
}

/* Category Navigation */
.category-navigation {
    max-width: var(--global-content-width);
    margin-left: auto;
    margin-right: auto;
}

.category-tabs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 0 20px;
}

.category-tabs-container {
    display: flex;
    gap: 12px;
    overflow-x: auto;
	overflow-y: visible;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex: 1;
    padding: 0;
	padding-bottom: 22px;
}

.category-tabs-container::-webkit-scrollbar {
    display: none;
}

.category-tab {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 50px;
    padding: 14px;
    color: #474747;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 700;
    font-size: .95rem;
	line-height: 1.2;
    text-align: center;
    flex-shrink: 0;
    min-height: 130px;
    border-radius: 17px;
    width: calc(16.6666666667% - 10px);
    box-shadow: 1.5px 2.99px 7.48px 0px #0000001A;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.category-tab:hover,
.category-tab:active,
.category-tab:focus {
	background-color: white !important;
	color: #474747 !important;
	box-shadow: 1.5px 2.99px 7.48px 0px #0000001A !important;
}

.category-tab.active::after {
    content: '';
    position: absolute;
    bottom: -23px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 22px solid transparent;
    border-right: 22px solid transparent;
    border-top: 22px solid #01D89B;
    z-index: 10;
}

.nav-arrow {
	background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex
;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    font-size: 15px;
    flex-shrink: 0;
    background-color: #C2C2C2;
    padding: 0;
}

.nav-arrow:hover {
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.2);
    transform: scale(1.05);
}

.nav-arrow:active {
    transform: scale(0.95);
}

/* Category Content */
.category-content {
    position: relative;
}

.category-content-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: #F8F8F8;
}

.category-panel {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
	margin-left: calc(50% - (var(--global-vw, 100vw) / 2));
    margin-right: calc(50% - (var(--global-vw, 100vw) / 2));
    max-width: 100vw;
    width: var(--global-vw, 100vw);
    background: white;
	position: relative;
	padding-bottom: 60px;
    padding-left: 15px;
    padding-right: 15px;
}

.category-panel.active {
    display: block;
    opacity: 1;
}

/* Sponsored Profiles */
.sponsored-profiles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: var(--global-content-width);
    margin-left: auto;
    margin-right: auto;
}

.sponsored-profile-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    position: relative;
    text-align: left;
}

.sponsored-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.sponsored-icon {
	background-color: #969DB4;
    display: flex;
    width: 11px;
    height: 11px;
    font-size: 8px;
    border-radius: 50px;
    align-items: center;
    justify-content: center;
    color: white;
    line-height: 0;
    font-weight: 700;
}

.sponsored-label {
	color: #969DB4;
    font-size: 0.65rem;
    font-weight: 400;
    letter-spacing: 0.2rem;
}

.profile-image {
    margin-bottom: 16px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80px;
	overflow: hidden;
}

.profile-image img {
    max-width: 150px;
    height: auto;
    width: auto;
    object-fit: contain;
}

.profile-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 12px;
    line-height: 1.3;
}

.profile-excerpt {
    color: #6c757d;
    line-height: 1.3;
    font-size: .8rem !important;
    margin-bottom: 16px !important;
}

.profile-link {
    color: #4678FD;
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.3s ease;
}

.profile-link:hover {
    color: #357ABD;
}

/* Bottom Sections */
.bottom-sections {
    padding-top: 40px;
	max-width: var(--global-content-width);
    margin-left: auto;
    margin-right: auto;
}

.bottom-section-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.bottom-section {
    background: white;
    text-align: left;
    transition: all 0.3s ease;
}

.section-icon {
    display: none;
}

.section-description-icon {
	display: none;
}

.icon-badge {
    display: none;
}

.section-title.section-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #2c3e50;
	margin-top: 0;
	line-height: 1.2em;
	display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    height: calc(1.2em * 2);
    margin-bottom: 1rem !important;
}

.latest-articles .section-title.section-title {
	display: block;
	height: auto;
}

.section-description {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 24px;
    font-size: 0.95rem;

    /* Add these properties for 3-line truncation */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    height: calc(1.6em * 3); /* Optional: set a fixed height based on line-height */
}

.section-cta {
    background: var(--global-palette1);
    color: white;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    display: inline-block;
}

.section-cta:hover {
    background: rgba(var(--global-palette1), 0.8);
    transform: translateY(-1px);
    color: white;
}

/* Articles List */
.articles-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.article-item {
    display: flex;
    gap: 16px;
    align-items: center;
}

.article-image {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-content {
    flex: 1;
}

.article-excerpt,
.article-title.article-title {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 8px;
}

.article-link {
    color: #4678FD;
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.3s ease;
}

.article-link:hover {
    color: #357ABD;
}

.no-articles {
    color: #6c757d;
    font-style: italic;
    text-align: center;
    padding: 20px;
}

@media (max-width: 768px) {
    .financial-brands-hub-block {
        padding: 20px 15px 0;
    }

    .hub-title {
        font-size: 1.3rem;
    }

    .hub-subtitle {
        font-size: 1rem;
		margin-bottom: 10px !important;
    }

	.nav-arrow {
		height: 15px;
		width: 15px;
		font-size: 8px;
	}

    .category-tabs {
        gap: 5px;
        padding: 0;
		margin-left: -12px;
		margin-right: -12px;
    }

    .category-tab {
        font-size: 0.8rem;
        min-width: 100px;
		width: calc(33% - 7px);
        min-height: 70px;
    }

	.sponsored-label {
		font-size: 0.45rem !important;
	}

	.sponsored-icon {
		width: 8px;
		height: 8px;
		font-size: 6px;
	}

    .sponsored-profile-card {
        padding: 20px 10px 10px;
    }

    .bottom-section-container {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .article-item {
        align-items: flex-start;
        text-align: left;
    }

    .article-image {
        width: 80px;
        height: 80px;
    }

	.section-description {
		display: flex;
		gap: 1rem;
		align-items: center;
		margin-bottom: 0 !important;
	}

	.section-description-icon {
		display: block;
        width: 35px;
        min-width: 35px;
	}

	.section-cta {
		display: none;
	}

	.sponsored-profiles {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 10px;
	}

	.sponsored-badge {
		position: absolute;
    	top: 5px;
	}

	.profile-image {
		width: 100%;
		height: 70px;
		overflow: hidden;
		margin-bottom: 0;
	}

	.profile-image img {
		max-width: 100%;
	}

	.profile-excerpt {
		display: none;
	}

	.section-description-text {
		/* Add these properties for 3-line truncation */
		display: -webkit-box;
		-webkit-line-clamp: 3;
		-webkit-box-orient: vertical;
		overflow: hidden;
		text-overflow: ellipsis;
		height: calc(1.3em * 3); /* Optional: set a fixed height based on line-height */
		line-height: 1.3;
		margin-bottom: 0 !important;
	}

	.profile-link {
		font-size: 0.65rem !important;
	}

	.section-title.section-title {
		margin-bottom: 0 !important;
		font-size: 1.1rem !important;
	}

	.latest-articles .section-title.section-title {
		margin-bottom: 10px !important;
	}
}
