.comment-box, .reply-box { 
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #ddd;
    width: 100%;
    position: relative; /* Needed to position elements like buttons and reply text */
}

/* Hover effect on Comment & Reply Boxes */
.comment-box:hover, .reply-box:hover {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.comments-section {
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    margin: 30px auto;
    max-width: 1100px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

h4, h3 {
    font-family: 'Arial', sans-serif;
    font-weight: 600;
    
    color: #333;
}
h3{
  text-align: center;
}

/* Leave a Comment Section */
#commentForm {
    margin-bottom: 25px;
    background: white;
    padding: 15px;
    border-radius: 10px;
  
}

/* Comments Header */
h3 {
    font-size: 1.5rem;
    margin-top: 30px;
    margin-bottom: 20px;
    color: #0981A0;
    text-transform: uppercase;
    text-shadow: 0px 1px 3px rgba(0, 0, 0, 0.1);
}

.comment-box small, .reply-box small {
    position: absolute;
    left: 15px;
    bottom: 10px;
    font-size: 0.70rem;
    color: #777;
}
/* Comment Box Styling */
.comment-box {
    position: relative; /* Needed for positioning reply button */
    padding: 20px;
    background: #f1f1f1;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    border: 1px solid #ddd;
    margin-bottom: 15px;
}

/* Replies Container */
.replies {
    padding-left: 20px;
    margin-top: 15px;
    border-left: 2px solid #eee;
}

/* Reply Box Styling */
.reply-box {
    border-left: 4px solid green;
    width: 97%;
    padding-left: 20px;
    margin-top: 10px;
    margin-left: 30px;
    background: #f1f1f1;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    position: relative; /* Positioning for the 'replied to' text */
}

/* "Replied to" Text in the Reply Box */
.reply-to-text {
    position: absolute;
    right: 10px;
    bottom: 0px;
    font-size: 0.75rem;
    color: #777;
    font-style: italic;
    font-weight: 600;
}

/* Reply Button at the bottom-right of the comment box */
.reply-btn {
    position: absolute;
    right: 2px;
    bottom: 3px;
    font-weight: 600;
    color: #777;
    background: none;
    border: none;
    cursor: pointer;
}
.admin-badge {
    background-color: #f39c12;
    color: white;
    padding: 2px 5px;
    border-radius: 3px;
    font-size: 0.8em;
    margin-left: 0px;
}

.admin-badge i {
    margin-right: 5px;
}

/* Reply Form Styling */
.reply-form-container {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #ccc;
    margin-top: 15px; /* Space between form and comments/replies */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 10px; /* Spacing between form elements */
}

/* Inputs and Textarea Styling */
.reply-form-container input,
.reply-form-container textarea {
    font-size: 0.9rem;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 100%;
}

/* Buttons Styling */
.reply-form-container .form-actions {
    display: flex;
    gap: 10px; /* Space between buttons */
}

.reply-form-container button {
    background-color: #0981A0;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
   
    transition: background-color 0.3s ease;
}

.reply-form-container button:hover {
    background-color: #05678d;
}

/* Mobile Adjustments */
@media (max-width: 767px) {
   
}

@media (max-width: 767px) {
  h3 {
        font-size: 1.2rem;
        text-align: center;
    }

    #commentForm {
        padding: 10px;
    }

    .comments-section {
        padding: 15px;
        box-shadow:none;
    }
    .comment-box, .reply-box {
        padding: 15px;  /* Reduced padding for mobile to fit better */
        margin-bottom: 15px;
        width: 100%;
    }
    
    .reply-box {
        margin-left: 0;
        padding-left: 15px;
    }

    .reply-form-container {
        padding: 15px;
        gap: 8px; /* Reduced spacing for smaller screens */
    }

    .reply-form-container button {
        padding: 6px 12px;
    }
    .reply-btn {
        font-size: 0.8rem;
    }

    #replytotextid {
        font-size: 0.55rem;
    }
    .comment-box .comment-header strong, 
    .reply-box .comment-header strong {
        font-size: 0.80rem;
    }
   .reply-box{
    border-left: 4px solid green;
   }
    .comment-box p, 
    .reply-box p {
        font-size: 0.85rem;
    }

    .comment-box .text-muted, 
    .reply-box .text-muted {
        font-size: 0.60rem;
    }
  

    .reply-btn {
        font-size: 0.8rem;
    }
}
