/*FAQ Section*/
.accordion {
	background-color: #eee;
    color: black;
    cursor: pointer;
    padding: 18px;
    width: 100%;
    text-align: left;
    border: none;
    outline: none;
    transition: 0.4s;
    border-bottom: solid 2px white;
    border-radius: 5px;
    border: solid 1px black;
    margin: 5px 0 5px;
}

/* Add a background color to the button if it is clicked on (add the .active class with JS), and when you move the mouse over it (hover) */
.active, .accordion:hover {
  background-color: #ccc;
}

/* Style the accordion panel. Note: hidden by default */
.panel {
    padding: 10px 18px;
    background-color: white;
    display: none;
    overflow: hidden;
    border: solid 2px #ccc;
    border-radius: 5px;
}

/*
.accordion:after {
  
}

.active:after {
  content: "\2212";
}
*/


.rating-stars {
    display: inline-block;
    position: relative;
    font-size: 24px;
    line-height: 1;
}
.stars-outer {
    display: inline-block;
    position: relative;
    color: #ccc; /* color for empty stars */
}
.stars-inner {
    position: absolute;
    top: 0;
    left: 0;
    white-space: nowrap;
    overflow: hidden;
    color: #ffc107; /* color for filled stars */
}
   .stars-outer::before,
   .stars-inner::before {
   content: "\2605\2605\2605\2605\2605"; /* five stars */
}

.rating-text {
    top: 0;
    left: 0;
    color: black; /* Optional: for better visibility */
    font-size: 24px; /* Optional: adjust as needed */
}

@media only screen and (max-width: 479px) {
	h2{
		font-size: 26px;
	}
}


/* General Styles */
.slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin: 0 auto;
}

.slider-wrapper {
    display: flex;
    flex-wrap: nowrap;
    transition: transform 0.3s ease-in-out;
}

.slider-item {
    flex: 1 0 auto;
    /*background-color: #f2f2f2;*/
    border-bottom: 1px solid #ddd;
    text-align: center;
}

/* Desktop view: Display items in a grid-like menu */
@media (min-width: 768px) {
    .slider-wrapper {
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .slider-item {
        flex: 0 1 calc(20% - 10px) /* Adjust width of each item */
        margin-bottom: 10px;
        box-sizing: border-box;
    }

    .slider-nav {
        display: none; /* Hide navigation buttons on desktop */
    }
}

/* Mobile view: Slider mode */
@media (max-width: 767px) {
    .slider-wrapper {
        flex-wrap: nowrap;
    }

    .slider-item {
        min-width: 33%;
        box-sizing: border-box;
    }

    .slider-nav {
        display: block; /* Show navigation buttons on mobile */
        background-color: rgba(0, 0, 0, 0.5) !important;
		/*position: absolute;
        top: 50%;
        transform: translateY(-50%);*/
		
        color: #fff !important;
        border: none;
        padding: 6px;
        cursor: pointer;
    }

    .slider-prev {
        left: 0px;
    }

    .slider-next {
        right: 0px;
    }
}

.pros-cons-title{
	width:100%;
}



/* Insurance categories, pros and cons  */
/* General styles for the company review */
.company-review {
    font-family: Arial, sans-serif;
    margin: 20px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f9f9f9;
}

/* Category title styles (not clickable) */
.insurance-category {
    width: 100%;
	display: ruby
}

.insurance-category h3 {
    margin: 0;
    padding: 10px 0;
    font-size: 18px;
    color: #333;
	width: 100%;
}

.insurance-category div {
	width: 33%;
	transition: width 0.3s ease; 
}

.insurance-category div.open {
    width: 100%; /* Full width when open */
}

.insurance-category div p{
	display: none;
}

.insurance-category div ul{
	display: none;
}

/* Sub-category (clickable dropdown) */
.sub-category-title {
    cursor: pointer;
    background-color: #edf5ff;
    color: black;
    padding: 8px;
    border-radius: 5px;
    margin: 10px 0;
    font-size: 16px;
}

/* Content inside the sub-category (hidden by default) */
.sub-category-content {
    margin: 0;
    padding: 10px 15px;
    display: none; /* Hide content by default */
    background-color: #f1f1f1;
    border-radius: 5px;
}

/* Show content when open */
.sub-category.open .sub-category-content {
    display: block;
}

/* Pros and Cons Section */
.pros-cons {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 20px;
}

.pros,
.cons {
    width: 48%; /* Set width to 50% minus margin */
    background-color: #f1f1f1;
    padding: 15px;
    border-radius: 5px;
    box-sizing: border-box;
    margin-bottom: 20px;
}

.pros h4,
.cons h4 {
    margin-top: 0;
}

/* Responsive Design for Mobile */
@media screen and (max-width: 700px) {
    .pros,
    .cons {
        width: 100%; /* Full width on mobile */
    }

}

@media screen and (max-width: 840px){
	.insurance-category div {
		width: 100%;
	}
	
}
