/* ========== Hero section ========== */
.hero-tabs {
    position: relative;
    border-top-left-radius: 36px;
    border-top-right-radius: 36px;
    overflow: hidden;
}

.hero-slides {
    position: relative;
    height: 527px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    visibility: hidden;
    transition: opacity .4s ease, visibility .4s ease;
    background-color: #222;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.hero-slide .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.85) 100%);
}

.hero-slide .content {
    position: relative;
    z-index: 3;
    max-width: 645px;
    color: #fff;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-top: 250px;
    padding-left: 70px;
}

.hero-slide h1 {
    font-size: 56px;
    line-height: 1.05;
    margin: 0 0 20px;
    color: #fff;
}

.hero-slide p {
    margin: 0 0 20px;
    color: #fff;
    font-weight: 500;
    font-size: 42px;
    line-height: 105%;
    letter-spacing: -3%;
}

.hero-slide .btn {
    border: 1px solid #fff;
    background: rgb(255 255 255 / 10%);
    padding-right: 2em;
    padding-left: .7em;
    color: #fff;
    text-decoration: none;
    transition: all .3s ease;
}

.hero-slide .btn:hover {
    background: #fff;
    color: #000;
}

.hero-tabs-nav {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 5;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    padding: 18px 20px 0px;
    background: linear-gradient(to top, rgba(0,0,0,.55), rgba(0,0,0,0));
}

.hero-tabs-nav .tab {
    background: transparent;
    border: 0;
    color: rgb(255 255 255 / 60%);
    cursor: pointer;
    padding: 0 8px 20px;
    position: relative;
    font-weight: 500;
    font-size: 18px;
    line-height: 120%;
    letter-spacing: -1%;
    text-align: center;
}

.hero-tabs-nav .tab:hover {
    color: #c9252b;
}

.hero-tabs-nav .tab.active {
    opacity: 1;
    color: #fff;
}

.hero-tabs-nav .tab.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 4px;
    background: #C9252B;
}

@media (max-width: 768px) {
    .hero-slides {
        height: 420px;
    }

    .hero-slide .content {
        padding: 100px 20px 50px;
    }

    .hero-slide h1 {
        font-size: 32px;
    }

    .hero-slide p {
        font-size: 18px;
        text-align: center;
        line-height: 120%;
    }

    .hero-tabs-nav {
        gap: 16px;
        flex-wrap: wrap;
        padding: 14px 12px 0px;
    }

    .hero-tabs-nav .tab {
        font-size: 14px;
    }
    
    .hero-slide .btn {
        margin: auto;
    }
}

/* ========== Nos solutions ========== */
.ew-tabs-wrapper {
    display: flex;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgb(0 0 0 / 10%);
}

/* LEFT MENU */
.ew-tabs-menu {
    width: 431px;
    min-height: 500px;
    background: #fff;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
}

.ew-tabs-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-shadow: inset -3px 0px 0px 0px #d2d2d2;
}

.ew-tab-item {
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: 0.3s;
    font-weight: 500;
    letter-spacing: -1%;
    color: #8b8b8b;
    border-right: 3px solid #d2d2d2;
}

.ew-tab-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ew-tab-icon img {
    width: 22px;
}

.ew-tab-item:hover .ew-tab-icon {
    background: #c9252b;
}

.ew-tab-item:hover .ew-tab-icon img {
    filter: brightness(10);
}

.ew-tab-item:hover {
    color: #0a0a0a;
    border-right: 3px solid #c9252b;
}

/* ACTIVE STATE */
.ew-tab-item.active {
    color: #0a0a0a;
    border-right: 3px solid #c9252b;
}

.ew-tab-item.active .ew-tab-icon {
    background: #c9252b;
}

.ew-tab-item.active .ew-tab-icon img {
    filter: brightness(10);
}

/* RIGHT */
.ew-tabs-content {
    flex: 1;
    background: #C9252B;
    padding-top: 62px;
    padding-right: 38px;
    padding-bottom: 62px;
    padding-left: 49px;
}

.ew-tab-content {
    display: none;
}

.ew-tab-content.active {
    display: block;
}

.ew-tab-excerpt {
    display: none;
    color: #fff;
    margin-bottom: 36px;
    max-width: 520px;
    font-weight: 600;
    font-size: 18px;
    line-height: 20px;
    letter-spacing: -0.15px;
}

.ew-tab-excerpt.active {
    display: block;
}

/* CARDS */
.ew-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.ew-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    transition: 0.3s;
    padding: 12px;
    border: 1px solid rgb(0 0 0 / 10%);
}

.ew-card:hover {
    transform: translateY(-5px);
}

.ew-card a {
    text-decoration: none;
    color: #000;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.ew-card-img {
    height: 200px;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
}

.ew-card-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ew-card-content h3 {
    width: 192px;
    font-weight: 500;
    font-size: 16px;
    line-height: 20px;
    letter-spacing: -0.15px;
}

.ew-card-content.ew-single {
    flex-direction: column;
}

.ew-card-content .ew-card-single {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
}

.ew-card-title h3 {
    font-size: 18px;
	width: 100%;
}

.ew-card-excerpt {
    font-size: 14px;
    color: #717182;
    line-height: 120%;
    margin-bottom: 12px;
}

/* TABLET */
@media(max-width:980px){
    .ew-tabs-wrapper {
        flex-direction: column;
    }

    .ew-tabs-menu {
        width: 100%;
        min-height: auto;
        display: flex;
        overflow-x: auto;
    }

    .ew-tab-item {
        white-space: nowrap;
    }

    .ew-cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .ew-tabs-column {
        gap: 5px;
    }
    .ew-tabs-content {
        padding-top: 40px;
        padding-right: 30px;
        padding-bottom: 40px;
        padding-left: 30px;
    }
}

/* MOBILE */
@media(max-width:767px){
    .ew-cards-grid {
        grid-template-columns: repeat(1, 1fr);
    }
    
    .ew-tab-icon {
        width: 40px;
        height: 40px;
    }
    
    .ew-tab-text {
        font-size: 15px;
    }
}

/* ========== Market Insights ========== */
.ew-blog-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.ew-blog-card {
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    transition: all .4s ease;
    position: relative;
    border: 1px solid rgb(0 0 0 / 10%);
}

.ew-blog-card:hover {
    transform: translateY(-3px);
}

.ew-blog-img {
    height: 240px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    transition: 1s all ease;
}

.ew-blog-card:hover .ew-blog-img {
    background-size: 105% !important;
}

.ew-blog-overlay {
    position: absolute;
    inset: 0;
}

.ew-blog-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ew-blog-date {
    color: #717182;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: -0.15px;
}

.ew-blog-content h3 {
    color: #0A0A0A;
    font-weight: 500;
    font-size: 18px;
    line-height: 120%;
    letter-spacing: -1%;
}

.ew-blog-content p {
    color: #717182;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: -0.15px;
}

.ew-blog-btn {
    margin-top: 10px;
    color: #0A0A0A;
    transition: all .3s ease;
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: -0.15px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.ew-blog-card .ew-blog-btn img {
    transition: all .4s ease;
}

.ew-blog-card .ew-blog-btn:hover img{
    transform: translateX(3px);
}

.ew-blog-card a {
    text-decoration: none;
    color: inherit;
}
@media(max-width:1080px){
	.ew-cards-grid {
		grid-template-columns: repeat(2, 1fr);
	}
	.ew-tabs-content {
		padding: 40px 20px;
	}
}
@media(max-width:980px){
    .ew-blog-wrapper {
        grid-template-columns: repeat(3, 1fr);
    }
    .ew-blog-img {
        background-size: cover;
    }
}

@media(max-width:767px){
    .ew-blog-wrapper {
        grid-template-columns: 1fr;
    }
}