/* General styling */


.comment-section {
    font-family: var(--font-main, Arial, sans-serif);
    width: 95%;
    max-width: 95%;
    margin: 0 auto;
    padding: 10px;
    box-sizing: border-box;
}

.comment-form {
    margin-bottom: 20px;
    width: 100%; /* Make forms responsive */
}

.comment-form input, .comment-form textarea {
    display: block;
    width: 100%; /* Set width to 100% for all inputs and textareas */
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box; /* Include padding in width calculation */
    font-size: 18px; /* Increased font size */
}

.comment-form button {
    padding: 12px 15px;
    border: none;
    background-color: #007bff;
    color: white;
    cursor: pointer;
    border-radius: 5px;
    width: 100%; /* Button takes full width on small screens */
    box-sizing: border-box;
    font-size: 18px; /* Increased font size for buttons */
}

.comment-form .cf-turnstile { margin: .75rem 0; }
.comment-reply:not([hidden]) {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .5rem;
    padding: .65rem .75rem;
    margin-bottom: .75rem;
    background: #eff6ff;
    color: #1e3a5f;
    border-radius: .4rem;
}
.comment-form .comment-reply button {
    width: auto;
    padding: .35rem .55rem;
    background: #fff;
    color: #1e3a5f;
    border: 1px solid #b8c9df;
    font-size: .875rem;
}
#comment-status:not(:empty) { margin-top: .5rem; }

.comment-box {
    border: 1px solid #ddd;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 5px;
    background-color: #f9f9f9;
    width: 100%; /* Make comment boxes responsive */
    box-sizing: border-box;
}

.comment-box strong {
    font-size: 16px;
}

.comment-box p {
    margin: 10px 0;
}

.comment-list {
    list-style: none;
    padding-left: 0;
}

.comment-list > li {
    margin-bottom: 15px;
}

.comment-list ul {
    padding-left: 20px;
    margin-top: 10px;
}

ul.comment-list ul {
    border-left: 2px solid #ddd;
    padding-left: 15px;
}

.reply-btn {
    background-color: transparent;
    border: none;
    color: #007bff;
    cursor: pointer;
    text-decoration: underline;
    width: 100%;
    text-align: left;
}

/* Responsive styling for smaller screens */
@media (max-width: 768px) {
    .comment-section {
        padding: 10px;
        width: 100%;
        max-width: 100%; /* Full width for mobile */
    }

    .comment-box {
        padding: 10px;
    }

    ul.comment-list ul {
        padding-left: 10px; /* Reduce indentation for replies on smaller screens */
    }

    .comment-form button {
        padding: 12px 0;
        font-size: 18px; /* Adjust font size */
    }
}
