.accordion {
    width: 100%;
    margin: 0 auto;
}

.accordion-item {
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.accordion-header {
    padding: 15px 20px;
    background-color: #f8f8f8;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.accordion-header:hover {
    background-color: #f0f0f0;
}

.accordion-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.accordion-header .fa-chevron-down {
    transition: transform 0.3s ease;
}

.accordion-content {
    display: none;
    padding: 20px;
    background-color: #fff;
}

.accordion-content.active {
    display: block;
}

/* 테이블 스타일 */
.accordion-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
}

.accordion-content th,
.accordion-content td {
    padding: 12px;
    border: 1px solid #ddd;
    text-align: left;
}

.accordion-content th {
    background-color: #f5f5f5;
    font-weight: bold;
}

/* 모바일 대응 */
@media screen and (max-width: 768px) {
    .accordion-header {
        padding: 12px 15px;
    }

    .accordion-content {
        padding: 0;
        overflow: hidden;
    }

    .accordion-content.active {
        display: block;
        padding: 15px;
    }

    .accordion-content table {
        font-size: 14px;
        min-width: 600px;
        width: 100%;
        margin: 0;
        border-collapse: collapse;
    }

    .accordion-content th,
    .accordion-content td {
        padding: 8px;
    }

    /* 스크롤바 컨테이너 */
    .accordion-content.active > div {
        width: 100%;
        overflow-x: auto;
        padding: 0;
        position: relative;
        -webkit-overflow-scrolling: touch;
    }

    /* 스크롤바 스타일링 */
    .accordion-content.active > div::-webkit-scrollbar {
        height: 8px;
        display: block;
    }

    .accordion-content.active > div::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 4px;
        margin: 0 1rem;
    }

    .accordion-content.active > div::-webkit-scrollbar-thumb {
        background: #888;
        border-radius: 4px;
    }

    .accordion-content.active > div::-webkit-scrollbar-thumb:hover {
        background: #555;
    }

    /* Firefox용 스크롤바 스타일링 */
    .accordion-content.active > div {
        scrollbar-width: thin;
        scrollbar-color: #888 #f1f1f1;
    }

    /* 상단 스크롤바 트랙 */
    .accordion-content.active > div::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 8px;
        background: #f1f1f1;
        z-index: 2;
        border-radius: 4px 4px 0 0;
        pointer-events: none;
    }

    /* 하단 스크롤바 트랙 */
    .accordion-content.active > div::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 8px;
        background: #f1f1f1;
        z-index: 2;
        border-radius: 0 0 4px 4px;
        pointer-events: none;
    }

    /* 테이블 컨테이너 여백 */
    .accordion-content.active > div > * {
        margin: 8px 0;
    }
}

/* 전분당 - 파란색 */
.accordion-item:nth-child(1) .accordion-header {
    background-color: #e3f2fd;
}

.accordion-item:nth-child(1) .accordion-header:hover {
    background-color: #bbdefb;
}

/* 활성탄 - 빨간색 */
.accordion-item:nth-child(2) .accordion-header {
    background-color: #ffebee;
}

.accordion-item:nth-child(2) .accordion-header:hover {
    background-color: #ffcdd2;
}

/* 규조토 - 초록색 */
.accordion-item:nth-child(3) .accordion-header {
    background-color: #e8f5e9;
}

.accordion-item:nth-child(3) .accordion-header:hover {
    background-color: #c8e6c9;
}

.accordion-header i {
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-header i {
    transform: rotate(180deg);
}

.accordion-content h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: #333;
    font-size: 1.3em;
}

.accordion-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
    font-size: 0.9em;
    color: #333;
}

.accordion-content tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

.accordion-content tbody tr:hover {
    background-color: #f1f1f1;
}

.accordion-content ul {
    list-style: none;
    padding: 0;
    margin-top: 1.5rem;
    color: #555;
    font-size: 1em;
}

.accordion-content ul li {
    margin-bottom: 0.8rem;
    line-height: 1.8;
    position: relative;
    padding-left: 0;
}

.accordion-content ul li b {
    color: #333;
}

/* Ensure br tags within td don't cause extra space issues if any */
.accordion-content td br {
    display: block;
    margin-bottom: 0.2em;
}

.accordion-content p {
    margin: 0;
    line-height: 1.6;
    color: #666;
}

/* Mobile responsiveness for table */
@media (max-width: 768px) {
    .accordion-content {
        overflow-x: auto; /* Enable horizontal scrolling for content if it overflows */
    }

    .accordion-content table {
        min-width: 700px; /* Ensure table doesn't shrink too much on smaller screens */
    }

    .accordion-content th,
    .accordion-content td {
        padding: 10px; /* Slightly reduce padding for smaller screens */
        font-size: 0.85em; /* Slightly smaller font size */
    }

    .pro_in ul {
        width: 100%;
        float: left;
        padding-top: 30px;
        padding-bottom: 0px;
        display: grid;
        justify-content: center;
    }
} 


@media (max-width: 1100px) {
    .neirong_biankang {
        padding: 7% 4%;
        background: #fff;
        box-shadow: 0 0 20px 3px rgba(0, 0, 0, 0.05);
        line-height: 35px;
        font-size: 15px;
    }
}

.neirong_biankang {
    text-align: left;
}

.pro_in {
    width: 100%;
    float: left;
}

.pro_in ul {
    width: 100%;
    float: left;
    padding-top: 30px;
    padding-bottom: 0px;
}

.flex1 {
    flex-wrap: wrap;
    justify-content: space-between;
}

.pro_in ul li {
    
    position: relative;
    width: 255px;
    height: 350px;
    margin-bottom: 10px;
    float: left;
    margin-left: 5px;
    margin-right: 5px;
    text-align: center;
    line-height: 30px;
    list-style: none;
}

.pro_in ul li::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: #f6f6f6;
    -webkit-transition: all ease 0.5s;
    transition: all ease 0.5s;
    z-index: -1;
}

.pro_in ul li img {
    max-width: 100%;
    width: auto;
    height: 240px !important;
    margin: auto;
    text-align: center;
}

.pro_in h4 {
    font-size: 16px;
    color: #000;
    font-weight: normal;
    width: 100%;
    padding-top: 15px;
    padding-bottom: 10px;
    float: left;
    text-align: center;
    line-height: 18px;
}

.pr_more1 a {
    font-size: 14px;
    color: #b2b2b2;
    border: solid 1px #b2b2b2;
    padding: 0px 30px 0px 30px;
    border-radius: 25px;
    margin-left: 60px;
    float: left;
}