/* 
// css/styles.css
Global Styles */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    padding-top: 70px; /* This matches the navbar height */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Competitor Card Styles */
.competitor-card {
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
    position: relative;
    padding-top: 40px;
}

.competitor-bgregular {
    border: 1px solid #007bff;
    background-color: #cde8f6;
}

.competitor-bgspecial {
    border: 2px solid #03bbb4;
    background-color: #c3f1ef;
}

.competitor-info {
    padding: 20px;
}

.rank {
    position: absolute;
    top: 0;
    left: 0;
    background-color: #007bff;
    color: white;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2em;
    border-top-left-radius: 10px;
    z-index: 10;
}

.badge_bodyCard {
    padding: 5px;
    font-size: 0.8em;
    align-items: center;
    color: white;
    text-decoration: none;
    border-radius: 5px;
}

.badges-container {
    position: absolute;
    top: 0;
    left: 40px;
    display: flex;
    flex-direction: row;
    z-index: 10;
}

.badge {
    padding: 10px;
    font-size: 0.8em;
    height: 40px;
    display: flex;
    align-items: center;
    border-radius: 0px;
}

.fee-badge {
    background-color: #4CAF50;
    border-bottom-left-radius: 10px;
}

.engagement-badge {
    background-color: #f15bb5;
}

.badge:last-child {
    border-bottom-right-radius: 10px;
}

.badge:first-child {
    border-bottom-left-radius: 0px;
}

.badge a {
    color: white;
    text-decoration: none;
}

.competitor-logo {
    position: relative;
    padding-top: 20px;
}

.competitor-logo img {
    border-radius: 10px;
    border: 1px solid #007bff;
	box-shadow: 5px 5px 0px 0px #007bff;
    max-width: 100%;
    height: auto;
}

.similarity-score {
    height: 10px;
    background-color: #007bff;
    margin-top: 10px;
}

.stat-label {
    font-size: 0.8rem;
    color: #6c757d;
}

.btn-discover {
    background-color: #2C5A41;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
	box-shadow: 5px 5px 0px 0px #ADFF2F;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
    position: relative;
}

.btn-discover:hover {
    background-color: #1E3F2C;
    color: white;
    padding-right: 30px;
}

.btn-discover::after {
    content: "→";
    position: absolute;
    opacity: 0;
    right: 10px;
    transition: 0.3s;
}

.btn-discover:hover::after {
    opacity: 1;
    right: 20px;
}
.our-opinion {
    margin-top: 10px;
    display: inline-block;
    color: #007bff;
    text-decoration: underline;
}

.our-opinion:hover {
    text-decoration: underline;
}

.offer-count {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #f8f9fa;
    border-radius: 20px;
    padding: 5px 10px;
    font-size: 0.8em;
    z-index: 10;
}

.changersabanque_note {
    font-size: 0.8em;
}

.creditcard_1 {
    color: #4CAF50;
    font-weight: bold;
}

.creditcard_2 {
    color: #007bff;
    font-weight: bold;
}

.creditcard_3 {
    color: #f15bb5;
    font-weight: bold;
}

.welcome_offer_title {
    color: #6c757d;
    font-size: 14px;
}

.welcome_offer {
    color: #007bff;
    font-weight: bold;
    font-size: 22px;
}

/* Base category badge styles */
/*
.category-badge {
    position: absolute;
    top: 40px;
    right: 10px;
    background-color: #6c757d;
    color: white;
    padding: 5px 10px;
    font-size: 0.8em;
    border-radius: 20px;
    z-index: 10;
}

.category-badge a {
    color: white;
    text-decoration: none;
}
*/
/* Category badge with icon styles */
.category-badge {
    position: static;
    margin-left: 10px;
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.category-badge a {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
}

.category-badge-icon {
    font-size: 0.9em;
}

/* Keep your existing category-specific colors */
.badge-banques-en-ligne {
    background-color: #1c75bc;
}

.badge-neobanques {
    background-color: #7b2cbf;
}

.badge-banques-pro {
    background-color: #2C5A41;
}

.badge-banques-juniors {
    background-color: #f15bb5;
}

/* Hover effects */
.category-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Responsive adjustment */
@media (max-width: 768px) {
    .category-badge {
        padding: 5px 10px;
    }
    
    .category-badge-icon {
        font-size: 0.8em;
    }
}
/* Responsive Styles */
@media (max-width: 768px) {
    .offer-count {
        display: none;
    }

    .badges-container {
        justify-content: right;
    }

    .badge {
        border-radius: 0;
    }

    .badge:first-child {
        border-bottom-left-radius: 0px;
    }

    .badge:last-child {
        border-bottom-right-radius: 10px;
    }
}

/* Include other existing styles (header, footer, page layout, etc.) here */

/* Header Styles */
#main-header {
    background-color: #fff;
    color: #000;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
}

.navbar {
    background-color: #fff;
    color: #000;
    padding: 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 50px;
    max-width: 100%;
    margin: 0 auto;
    height: 70px;
}

.navbar-brand {
    padding: 10px 0;
}

.navbar-brand img {
    max-height: 50px;
}

.nav-link {
    color: #000;
}

.nav-link:hover {
    color: #000;
}

.btn-success {
    background-color: #28a745;
    border-color: #28a745;
	box-shadow: 5px 5px 0px 0px #ADFF2F;
}

.btn-success:hover {
    background-color: #218838;
    border-color: #1e7e34;
}

.navbar-toggler {
    color: #000;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3e%3cpath stroke='rgba(0, 0, 0, 0.5)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Footer Styles */
.footer_changersabanque {
    background-color: #1c75bc;
	margin-top: auto; /* Push footer to bottom if content is short */
}

.footer_changersabanque_btn {
    background-color: #03BBB4;
    color: #000;
}

.footer_links {
    color: white;
    text-decoration: none;
}

a.footer_links:hover {
    color: white;
    text-decoration: underline;
}

a.footer_links:active, a.footer_links:visited {
    color: white;
    text-decoration: none;
}

/* Page Layout Styles */
.page-wrapper {
    flex: 1 0 auto;
    padding-top: 70px;
}

.page-container {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.main-content {
    flex: 1;
    min-width: 0;
    border: 1px solid #007bff;
	box-shadow: 5px 5px 0px 0px #007bff;
    background-color: #cde8f6;
    border-radius: 10px;
    margin-bottom: 20px;
	padding-left: 25px;
    padding-right: 25px;
    padding-top: 20px;
}

.sidebar {
    width: 300px;
    margin-top: 0;
}

.sidebar-block {
    background-color: #f7f7f7;
    border-radius: 10px;
	box-shadow: 5px 5px 0px 0px #BEBEBE;
    padding: 20px;
    margin-bottom: 20px;
}

.sidebar-block:last-child {
    margin-bottom: 0;
}

.btn_askquestion{
	box-shadow: 5px 5px 0px 0px #BEBEBE;
}
.sidebar_bgContact{
 background-color: #f3f7fe;
}

.sidebar_comparison-block {
    border-radius: 10px;
    padding: 15px;
    background-color: #f7f7f7;
	box-shadow: 5px 5px 0px 0px #BEBEBE;
    margin-bottom: 20px;
}
.sidebar_comparison-title {
    text-align: center;
    font-size: 18px;
    margin-bottom: 15px;
}
.sidebar_comparison-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    background-color: #c3f1ef;
    border-radius: 10px;
    margin-bottom: 15px;
}
.sidebar_comparison-logo {
    width: 90px;
    height: 90px;
    object-fit: contain;
	border-radius: 10px;
    border: 1px solid #007bff;
    background-color: #ffffff;
}
.sidebar_vs-text {
	display: block;
    background: #072373;
    border-radius: 100%;
    height: 20px;
    width: 20px;
    left: 46.5%;
    top: 50%;
    transform: translateY(-70%);
    color: #ffffff;
    line-height: 22px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
}
.sidebar_comparison-name {
    text-align: center;
    font-size: 14px;
	text-decoration:underline;
}


/* Sidebar positioning */
.sidebar-left .sidebar {
    order: -1;
    margin-right: 20px;
}

.sidebar-right .sidebar {
    margin-left: 20px;
}

/* Competitor Card Styles */
.competitor-card {
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
    position: relative;
    padding-top: 40px;
}

.competitor-bgregular {
    border: 1px solid #007bff;
    background-color: #cde8f6;
	box-shadow: 5px 5px 0px 0px #007bff;
}

.competitor-bgspecial {
    border: 2px solid #f15bb5;
    background-color: #c3f1ef;
	box-shadow: 5px 5px 0px 0px #f15bb5;
}

.competitor-info {
    padding: 20px;
}

.rank {
    position: absolute;
    top: 0;
    left: 0;
    background-color: #007bff;
    color: white;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2em;
    border-top-left-radius: 10px;
    z-index: 10;
}

.badge_bodyCard {
    padding: 5px;
    font-size: 0.8em;
    align-items: center;
    color: white;
    text-decoration: none;
    border-radius: 5px;
}

.badges-container {
    position: absolute;
    top: 0;
    left: 40px;
    display: flex;
    flex-direction: row;
    z-index: 10;
}

.badge {
    padding: 10px;
    font-size: 0.8em;
    height: 40px;
    display: flex;
    align-items: center;
    border-radius: 0px;
}

.fee-badge {
    background-color: #4CAF50;
    border-bottom-left-radius: 10px;
}

.engagement-badge {
    background-color: #f15bb5;
}

.badge:last-child {
    border-bottom-right-radius: 10px;
}

.badge:first-child {
    border-bottom-left-radius: 0px;
}

.badge a {
    color: white;
    text-decoration: none;
}

.competitor-logo {
    position: relative;
    padding-top: 20px;
}

.competitor-logo img {
    border-radius: 10px;
    border: 1px solid #007bff;
    max-width: 100%;
    height: auto;
}

.similarity-score {
    height: 10px;
    background-color: #007bff;
    margin-top: 10px;
}

.stat-label {
    font-size: 0.8rem;
    color: #6c757d;
}

.btn-discover {
    background-color: #2C5A41;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
    position: relative;
}

.btn-discover:hover {
    background-color: #1E3F2C;
    color: white;
    padding-right: 30px;
}

.btn-discover::after {
    content: "→";
    position: absolute;
    opacity: 0;
    right: 10px;
    transition: 0.3s;
}

.btn-discover:hover::after {
    opacity: 1;
    right: 20px;
}

.our-opinion {
    margin-top: 10px;
    display: inline-block;
    color: #007bff;
    text-decoration: underline;
}

.our-opinion:hover {
    text-decoration: underline;
}

.offer-count {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #f8f9fa;
    border-radius: 20px;
    padding: 5px 10px;
    font-size: 0.8em;
    z-index: 10;
}

.stars {
    color: #007bff !important;
    font-size: 1.2em;
    margin-bottom: 15px;
}

.stars:hover a{
    color: #FFC127;
}

.changersabanque_note {
    font-size: 0.8em;
}

.creditcard_1 {
    color: #4CAF50;
    font-weight: bold;
}

.creditcard_2 {
    color: #007bff;
    font-weight: bold;
}

.creditcard_3 {
    color: #f15bb5;
    font-weight: bold;
}

.welcome_offer_title {
    color: #6c757d;
    font-size: 14px;
}

.welcome_offer {
    color: #007bff;
    font-weight: bold;
    font-size: 22px;
}


/* Product Styles */
.products-section {
    margin-top: 15px;
}

.product-card {
    border: 1px solid #b7aeae;
	box-shadow: 5px 5px 0px 0px #b7aeae;
    border-radius: 8px;
    padding: 10px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.product-name {
    font-weight: bold;
    color: #000000;
    text-decoration: underline;
    font-size: 0.9em;
    margin-bottom: 5px;
}

.product-price {
    font-size: 1em;
    font-weight: bold;
}


.product-price-1 { color: #28a745; } /* Green */
.product-price-2 { color: #007bff; } /* Blue */
.product-price-3 { color: #f15bb5; } /* Pink */
.product-price-4 { color: #c59400; } /* Gold */


/* Pros and Cons Styles */
.score-box {
    border: 1px solid #007bff;
	box-shadow: 5px 5px 0px 0px #007bff;
    background-color: #cde8f6;
    border-radius: 10px;
    padding: 20px;
    height: 100%;
}

.overall-score {
    font-size: 3rem;
    font-weight: bold;
    color: #007bff;
}

.bg_pros {
    border: 1px solid #28A745;
	box-shadow: 5px 5px 0px 0px #28A745;
    background-color: #b9f9c8;
    border-radius: 10px;
    padding: 20px;
    height: 100%;
}

.bg_cons {
    border: 1px solid #DC3545;
	box-shadow: 5px 5px 0px 0px #DC3545;
    background-color: #f9c5ca;
    border-radius: 10px;
    padding: 20px;
    height: 100%;
}

.pros-cons-list {
    list-style-type: none;
    padding-left: 0;
}

.pros-cons-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
}

.pros-cons-list i {
    margin-right: 10px;
    font-size: 1.2em;
    margin-top: 0.2em;
}

.pour-contre-title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.pour-icon {
    color: #28a745;
}

.contre-icon {
    color: #dc3545;
}

.btn-openAccount {
    background-color: #2C5A41;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
	box-shadow: 5px 5px 0px 0px #ADFF2F;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
    position: relative;
}

.btn-openAccount:hover {
    background-color: #1E3F2C;
    padding-right: 30px;
}

.ensavoirplus{
	box-shadow: 5px 5px 0px 0px #cde8f6;
}

.visitersite{
	box-shadow: 5px 5px 0px 0px #cde8f6;
}


/* comparison css */

/*
	#comparison_popup {
		z-index:99999;
	}
    .comparison_selected_competitor {
        display: inline-block;
        margin-right: 10px;
    }
    .comparison_competitor_logo {
        width: 50px;
        height: 50px;
        object-fit: contain;
    }
    .comparison_competitor_item {
        display: flex;
        align-items: center;
        margin-bottom: 10px;
    }
    .comparison_competitor_item img {
        width: 30px;
        height: 30px;
        margin-right: 10px;
    }

.comparison_button {
    position: relative;
    display: inline-block;
    padding: 6px 12px;
    background-color: #f8f9fa;
    border: 1px solid #ced4da;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.comparison_button:hover {
    background-color: #e2e6ea;
    border-color: #dae0e5;
}

.comparison_button.checked {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

.comparison_button.checked:hover {
    background-color: #0056b3;
    border-color: #004085;
}

.comparison_checkbox {
    display: none;
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border: 2px solid white;
    border-radius: 3px;
}

.comparison_button.checked .comparison_checkbox {
    display: inline-block;
}

.comparison_checkbox::after {
    content: '';
    position: absolute;
    display: none;
    left: 4px;
    top: 1px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.comparison_button.checked .comparison_checkbox::after {
    display: block;
}

.comparison_button_text {
    margin-left: 20px;
}

*/
/* Modern Comparison Button Styles - Compatible with existing JS */
.comparison_button {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 10px 16px;
    background-color: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
    color: #64748b;
    width: auto;
    min-width: 200px;
}

.comparison_checkbox {
    position: relative;
    width: 18px;
    height: 18px;
    border: 2px solid #e2e8f0;
    border-radius: 4px;
    margin-right: 8px;
    transition: all 0.2s ease;
}

/* Keep the checked state styles that work with toggleCompetitor() */
.comparison_button.checked {
    background-color: #2C5A41;
    border-color: #2C5A41;
    color: white;
}

.comparison_button.checked .comparison_checkbox {
    border-color: white;
}

.comparison_button.checked .comparison_checkbox::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.comparison_button_text {
    font-weight: 500;
}

/* Hover effects that don't interfere with toggle functionality */
.comparison_button:not(.checked):hover {
    border-color: #2C5A41;
    background-color: #f8fafc;
}

.comparison_button.checked:hover {
    background-color: #234732;
}

/* Style for the comparison popup */
#comparison_popup {
    z-index: 1000;
    border-top: 3px solid #2C5A41;
}

.comparison_selected_competitor {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    padding: 8px 12px;
    border-radius: 8px;
    margin: 0 8px;
    border: 1px solid #e2e8f0;
}

.comparison_competitor_logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 6px;
}

#comparison_compare_button {
    background-color: #2C5A41;
    border-color: #2C5A41;
    transition: all 0.2s ease;
}

#comparison_compare_button:hover {
    background-color: #234732;
    border-color: #234732;
}

#comparison_compare_button:disabled {
    background-color: #94a3b8;
    border-color: #94a3b8;
}

.banner-container {
    width: 100%;
    margin: 20px 0;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 10px;
    box-shadow: 5px 5px 0px 0px #BEBEBE;
}

.banner-content {
    /* Add specific styling for your banner content */
    width: 100%;
    min-height: 100px; /* Adjust based on your banner needs */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .comparison_button {
        padding: 8px 12px;
        min-width: 180px;
    }
    
    .comparison_selected_competitor {
        margin: 4px;
        padding: 6px 10px;
    }
}
/* Responsive Styles */
@media (max-width: 991.98px) {
    body {
        padding-top: 60px;
    }

    .header-content {
        height: auto;
        min-height: 60px;
        flex-wrap: wrap;
        padding: 0 10px;
        position: relative;
    }

    .navbar-brand {
        flex: 1;
        padding-left: 40px;
    }

    .navbar-toggler {
        position: absolute;
        top: 10px;
        right: 10px;
        z-index: 1031;
    }

    .navbar-collapse {
        flex-basis: 100%;
        order: 3;
    }

    .navbar-nav {
        margin-top: 1rem;
    }

    .btn-success {
        background-color: #03BBB4;
        margin-top: 0.5rem;
        margin-bottom: 0.5rem;
    }

    .page-container {
        flex-direction: column;
    }

    .main-content {
        order: -1;
    }

    .sidebar {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        order: 1;
    }

    .sidebar-left .sidebar,
    .sidebar-right .sidebar {
        margin: 20px 0;
    }

    .offer-count {
        display: none;
    }

    .badges-container {
        justify-content: right;
    }

    .badge {
        border-radius: 0;
    }

    .badge:first-child {
        border-bottom-left-radius: 0px;
    }

    .badge:last-child {
        border-bottom-right-radius: 10px;
    }
}


/* Updated styles.css */

/* Container Max Width */
.max-w-screen-xl {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header Updates */
#main-header .header-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #f6f9fc 0%, #e9f2f9 100%);
    padding: 3rem 0;
    margin-top: 0; /* Remove the top margin */
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

/* Base styles for category cards (existing) */
/* Updated category card styles */
.category-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem;
    background: white;
    border-radius: 1.5rem;
    color: #333;
    text-decoration: none;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Icon base styles */
.category-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

/* Color-specific styles for icons */
.bg-blue .category-icon {
    background: rgba(28, 117, 188, 0.1);
    color: #1c75bc;
}

.bg-purple .category-icon {
    background: rgba(123, 44, 191, 0.1);
    color: #7b2cbf;
}

.bg-green .category-icon {
    background: rgba(44, 90, 65, 0.1);
    color: #2C5A41;
}

.bg-orange .category-icon {
    background: rgba(241, 91, 181, 0.1);
    color: #f15bb5;
}

/* Red corner decoration with different colors */
.category-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 40px;
    clip-path: polygon(100% 0, 100% 100%, 0 100%);
    opacity: 0.2;
    transition: opacity 0.3s ease;
}

/* Color-specific corner styles */
.bg-blue::after {
    background: #1c75bc;
}

.bg-purple::after {
    background: #7b2cbf;
}

.bg-green::after {
    background: #2C5A41;
}

.bg-orange::after {
    background: #f15bb5;
}

/* Text styles */
.category-card h3 {
    color: #333;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.category-card p {
    color: #666;
    font-size: 0.875rem;
    margin: 0;
}

/* Active state styles */
.category-card.active {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.category-card.active::after {
    opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .category-card {
        padding: 1.5rem;
    }

    .category-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}
/* Responsive adjustments */
@media (max-width: 768px) {
    .category-card {
        padding: 1.5rem;
    }

    .category-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}


/* Page Layout */
.page-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
    margin-top: 2rem;
	flex: 1;
    margin-bottom: 25px; 
}

.content-area {
    min-width: 0;
}

.competitors-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Update existing competitor card styles */
.competitor-card {
    max-width: 100%;
    margin: 0;
}


/* Updated competitor card styles */
.competitor-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
    padding: 20px;
}

.competitor-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.comparison_button {
    margin-left: auto;
    min-width: 180px;
}

.competitor-card-content {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 30px;
    margin-bottom: 20px;
}

.competitor-logo-column {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.competitor-logo-column img {
    width: 100%;
    border-radius: 10px;
    border: 1px solid #007bff;
    box-shadow: 5px 5px 0px 0px #007bff;
}

.competitor-info-column {
    flex: 1;
}

.welcome_offer_title {
    text-align: center;
    margin-top: 15px;
}

.btn-discover {
    margin-top: 10px;
}

.our-opinion {
    margin-top: 5px;
}

/* Products grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 10px;
}

/* Footer positioning */
.competitor-card-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

.offer-count {
    position: static;
    background-color: #f8f9fa;
    border-radius: 20px;
    padding: 5px 15px;
    font-size: 0.8em;
}

.category-badge {
    position: static;
    margin-left: 10px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .competitor-card-content {
        grid-template-columns: 180px 1fr;
        gap: 20px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .competitor-card-content {
        grid-template-columns: 1fr;
    }

    .competitor-logo-column {
        align-items: center;
        text-align: center;
    }

    .competitor-card-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .comparison_button {
        width: 100%;
        margin-top: 10px;
    }
}



/* Responsive Updates */
@media (max-width: 1024px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .page-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        order: -1;
    }
}

@media (max-width: 640px) {
    .category-grid {
        grid-template-columns: 1fr;
    }

    .hero-section {
        padding: 2rem 0;
    }
}

/* Updated Hero Section Styles */
.hero-section {
    background: linear-gradient(135deg, #f6f9fc 0%, #e9f2f9 100%);
    padding: 3rem 0;
    margin-top: 0;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.category-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
    background: white;
    border-radius: 1.5rem;
    color: #333;
    text-decoration: none;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    height: auto;
}

/* Background image containers */
.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.3s ease;
    z-index: 1;
}

/* Category-specific background images */
.bg-blue::before {
    background-image: url('/images/hero/onlinebank-home-bg.png');
    background-color: rgba(28, 117, 188, 0.9);
}

.bg-purple::before {
    background-image: url('/images/hero/neobank-home-bg.png');
    background-color: rgba(123, 44, 191, 0.9);
}

.bg-green::before {
    background-image: url('/images/hero/business-home-bg.png');
    background-color: rgba(44, 90, 65, 0.9);
}

.bg-orange::before {
    background-image: url('/images/hero/juniors-home-bg.png');
    background-color: rgba(241, 91, 181, 0.9);
}

/* Card content */
.category-card-content {
    position: relative;
    padding: 1.5rem;
    margin-top: 45%;
    width: 100%;
    z-index: 2;
}

.category-card h3 {
    color: #333;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.category-card p {
    color: #666;
    font-size: 0.875rem;
    margin: 0;
    line-height: 1.5;
}

/* Corner decoration - Fixed positioning */
.category-card .corner-highlight {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 40px;
    clip-path: polygon(100% 0, 100% 100%, 0 100%);
    z-index: 2;
    transition: opacity 0.3s ease;
}

/* Category-specific corner colors with reduced opacity by default */
.bg-blue .corner-highlight {
    background: #1c75bc;
    opacity: 0.2;
}

.bg-purple .corner-highlight {
    background: #7b2cbf;
    opacity: 0.2;
}

.bg-green .corner-highlight {
    background: #2C5A41;
    opacity: 0.2;
}

.bg-orange .corner-highlight {
    background: #f15bb5;
    opacity: 0.2;
}

/* Active state - full opacity for corner */
.category-card.active .corner-highlight {
    opacity: 1;
}

/* Hover effects */
.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.category-card:hover::before {
    transform: scale(1.1);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .category-grid {
        grid-template-columns: 1fr;
    }
    
    .category-card {
        height: 280px;
    }
}