.tabs {
    display: flex;
    cursor: pointer;
    padding: 10px;
    background: #fff;
    position: absolute;
    left: 0;
    right: 0;
    margin: 0 auto;
    padding: 0 287px;
}
.tabs div {
    background-color: transparent;
    font-size: 24px;
    font-style: normal;
    font-weight: 700;
    padding: 30px 40px;
}
.tabs div.active {
    border-radius: 20px 20px 0px 0px;
    background: #EBEBEB;
    color: #1C1918;
}
.tab-content {
    padding: 20px;
    display: none;
    padding-top: 90px;
}
.tab-content.active {
    display: block;
}
.faq-titles h2{
    font-size: 64px;
    font-style: normal;
    font-weight: 800;
    line-height: 100%; 
    color: #F1592A;
}
.faq-titles{
    padding:50px 0;
}
.faq-titles p{
   font-weight: 700;  
}
.inner_faqs {
    background: #EBEBEB;
}
.outer-color{
    background: #fff; 
}

/* Tab styles for desktop */
.tabs {
    display: flex;
    justify-content: space-around;
}
.faq-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    padding-top: 60px;
    padding-bottom: 50px;
}
.tab-link {
    cursor: pointer;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}
.tab-link.active {
    background-color: #007bff;
    color: white;
}
.tab-content {
    display: none;
}
.faq-item {
    background-color: #F5F5F5;
    border: 1px solid #ddd;
    border-radius: 40px;
    padding-top: 26px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    flex: 0 0 32%;
    margin-bottom: 20px;
    position: relative;
    text-align: center;
    box-sizing: border-box;
    transition: all 0.3s ease;
    max-height: fit-content;
}
.faq-item h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #F1592A;
    text-align: center;
}
.tab-content.active {
    display: block;
}
 .faq-item .faq-question {
    font-size: 22px;
    margin-bottom: 0;
    font-weight: 700;
    border-radius: 0 0 40px 40px;
    min-height: 60px;
    background-image: url(https://brillare.net.au/wp-content/uploads/2024/10/faq-bottom-curve.png);
    background-size: 100%;
    background-position: center bottom;
    background-repeat: no-repeat;
    padding: 0 1rem 50px;
}
.faq-item .faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    font-size: 14px;
    padding: 0 10px;
}
.faq-item .toggle-symbol {
    font-size: 30px;
    cursor: pointer;
    position: absolute;
    bottom: -10px;
    right: 0;
    left: 0;
    margin: 0 auto;
    text-align: center;
    background: #fff;
    border: 3px solid #000;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    line-height: 24px;
}
.faq-answer p, .faq-answer li {
    color: #fff;
    font-size: 20px;
    font-weight: 600;
}
.faq-answer a {
    color: var(--main_colour);
}
.faq-item.active .faq-answer {
    background: #29232A;
       max-height: fit-content;
    border-radius: 0 0 40px 40px;
    margin-top: -20px;
    padding-top: 25px;
    padding-bottom: 30px;
}
.faq-item.active .toggle-symbol {
    content: '-';
}
.faq-item.active .faq-question{
	border-radius: 0;
}

/* Accordion styles for mobile (below 768px) */
@media (max-width: 768px) {
     .faq-item {
        width: 100%;
        margin-bottom: 15px;
		 flex: 0 0 100%;
    }
    .tabs {
        display: none; /* Hide tabs in mobile */
    }
    .tab-content {
        display: block;
        margin-bottom: 10px;
    }
    .tab-content h3 {
        cursor: pointer;
        background-color: #f1f1f1;
        padding: 10px;
        margin: 0;
        border: 1px solid #ddd;
    }
    .accordion-active {
        display: block !important;
    }
    .accordion-active p {
        display: block;
        padding: 10px;
        border-top: 1px solid #ddd;
    }
}