/* divider */
hr.solid {
    border-top: 1px solid #d2d2d7;
    margin:2em auto;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Inter, "Helvetica Neue", Arial, sans-serif;
}

.features-section {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    justify-content: space-evenly;
    align-items: flex-start;
    margin-top: 16px;
    padding: 8px 8px;
}

.view-link {
    border-radius:80px;
    background: #f2f2f2;
    display:flex;
    justify-content: space-between;
    margin-top: 16px;
    padding: 8px 18px;
    border: 1px solid;
}

.card-list {
    max-width: 1200px;
    margin: auto;
    padding: 12px;
    display: flex;
    flex-wrap: wrap;
    gap:6px;
}

.card-list .card-item {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 .5px .5px rgba(0, 0, 0, .05);
    list-style: none;
    cursor: pointer;
    text-decoration: none;
    border: 1px solid #d3d3d3;
    transition: all .5s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1 1 calc(33.33% - 24px);
    margin: 4px;
    justify-content: space-between; /* Ensure proper spacing */
}

.card-list .card-item:hover .card-item:active{
    border: 1px solid #000;
}
.card-list .card-item img {
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: 8px;
    object-fit: cover;
}
.card-list span {
    display: inline-block;
    background: #F7DFF5;
    margin-top: 32px;
    padding: 8px 15px;
    font-size: 1.35rem;
    border-radius: 50px;
    font-weight: 500;
    border: 1px solid #d3d3d3;
}
.card-list .cable-type {
    background-color: #f2f2f2; 
    color: #000;
}   

.card-item p {
    margin: 12px 0;
    flex-grow: 1;
    line-height: 1.2
}

.card-item .arrow {
    display: flex;
    align-items: center; 
    justify-content: center;
    transform: rotate(-35deg);
    height: 40px;
    width: 40px;
    color: #000;
    border: 1px solid #000;
    border-radius: 50%;
    transition: 0.2s ease;
    margin-top: auto; 
}

.card-list .card-item:hover .arrow  {
    background: #000;
    color: #fff; 
}

.row-product {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px; /* Uniform spacing */
}

.prod-feature {
    margin-bottom: 10px;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
}

.prod-feature.col-3 {
    flex: 0 0 30%;
}

.prod-feature.col-2 {
    flex: 0 0 48%;
}

.hmargins {
    margin-top: 0;
}

/* good to go */
button.faq-list {
    box-sizing: border-box;
    padding: 10px;
    margin:8px;
    background: none;
    max-width: 100%;
    width: 100%;
    border-radius: 12px;
    border: 1px solid #DDDDDD;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    cursor: pointer;
    transition: translate(-50%, -50%);
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

button.faq-list span {
    flex-grow: 1;
    text-align: left;
}

button.faq-list:hover, 
button.faq-list.active {
    background-color: #f0f0f0;
}

button.faq-list i {
    color: #777;
    font-weight: 700;
    transition: transform 0.4s ease;
}

/* CCDT banner at bottom of cable category pages */
.ccdt-banner-container {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.ccdt-banner-container img {
    width: 100%;
    height:auto;
}

p.ccdt-banner{
    position: absolute;
    top: 35%;
    left:50%;
    transform: translate(-50%, -50%);
    width:max-content;
    box-sizing:border-box;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    font-size: 20px;
    font-weight: 500;
    color: #fff;
}

button.ccdt-banner img {
    width: 20px;
    height: auto;
}

button.ccdt-banner {
    position: absolute;
    top: 55%;
    left:50%;
    transform: translate(-50%, -50%);
    width:max-content;
    box-sizing:border-box;
    padding: 10px 15px;
    border-radius: 30px;
    border: 1px solid #DDDDDD;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color .4s ease, background-color .4s ease;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    background: #39c;
}

button.ccdt-banner:hover, 
button.ccdt-banner.active {
    background-color: #26517f;
}

/* category page FAQ */
.panel-faq {
    margin-top: 16px;
    padding: 0 16px;
    border-top: none;
    border-radius: 0 0 12px 12px;
    background: #fff;
    max-height: 0;
    overflow: hidden;
    opacity:0;
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
}

.panel-faq.active {
    max-height: 500px;
    opacity: 1;
    padding: 16px;
}

/* .panel-faq.show {
    max-height: 500px;
} */

button.faq-list i {
    transition: transform 0.3s ease-out;
}

button.faq-list.active i {
    transform: rotate(90deg);
}

@media (max-width: 768px) {
    .prod-feature {
        flex: 0 0 100% !important;
    }
    
    .card-list .card-item {
        flex: 1 1 100%;
    }

    .ccdt-banner-container img {
        max-width: 100%; /* Makes it fully responsive */
    }
    
    .ccdt-banner-container {
        flex-direction:column;
        align-items:center;
        text-align:center;
        position:relative;
    }
    
    p.ccdt-banner {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        font-size: 16px; /* Smaller text for mobile */
        padding: 8px 12px;
        margin-bottom: 10px; /* Space between text and button */
    }

    button.ccdt-banner {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        margin-top: 0;
        width: auto;
        padding: 8px 12px;
    }
}

@media screen and (max-width: 980px) {
    .card-list {
        margin: 0 auto;
    }
}