/* ============================================= */
/* COMMENTS SYSTEM - GOVT EXAM STUDY             */
/* ============================================= */

/* Global reset for comment boxes */
.comment-wrapper * {
    box-sizing: border-box; /* Isse koi bhi box boundary se bahar nahi jayega */
}

.comment-wrapper {
    margin: 30px 85px;
    padding: 20px;
    background: #ffffff;
    border: 1px solid #dddddd;
    border-radius: 8px;
    font-family: inherit;
}

.comment-wrapper h3 {
    color: #008c76;
    border-bottom: 2px solid #008c76;
    display: inline-block;
    margin-bottom: 25px;
    font-size: 20px;
    text-transform: uppercase;
    padding-bottom: 5px;
}

/* Form & Input Layout */
.comment-form, .student-reply-form form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.comment-row {
    display: flex;
    gap: 15px;
    width: 100%;
}

.comment-row input, 
.comment-wrapper textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #cccccc;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
    background: #fafafa;
    transition: all 0.3s ease;
}

.comment-row input:focus, 
.comment-wrapper textarea:focus {
    border-color: #008c76;
    background: #ffffff;
    box-shadow: 0 0 5px rgba(0, 140, 118, 0.1);
}

.comment-wrapper textarea {
    height: 80px;
    resize: vertical;
}

/* Buttons */
.submit-comment-btn {
    background: #008c76;
    color: #ffffff;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    align-self: flex-start;
    transition: 0.3s;
}

.submit-comment-btn:hover {
    background: #006b5a;
}

/* Comments Display Area */
.display-comments-area {
    margin-top: 25px;
}

.separator-line {
    border: 0;
    border-top: 1px dashed #dddddd;
    margin: 20px 0;
}

.single-comment {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f1f1f1;
}

.user-info strong {
    color: #008c76;
    font-size: 14px;
}

.user-text {
    font-size: 15px;
    color: #444;
    line-height: 1.5;
    margin: 5px 0;
}

/* Admin Reply Box */
.admin-reply {
    margin: 10px 0 10px 20px;
    background: #f0f8f8;
    border-left: 4px solid #008c76;
    padding: 10px 15px;
    font-size: 14px;
    border-radius: 0 4px 4px 0;
}

.admin-reply strong {
    color: #008c76;
    text-transform: uppercase;
    font-size: 12px;
}

/* Reply Toggle Button */
.reply-toggle-btn {
    background: none;
    border: none;
    color: #008c76;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    padding: 0;
    margin: 5px 0;
    text-decoration: underline;
}

/* STUDENT REPLY FORM (Nested Fix) */
.student-reply-form {
    margin: 15px 0 15px 20px;
    padding: 15px;
    background: #fcfcfc;
    border: 1px solid #eeeeee;
    border-radius: 6px;
}

.nested-replies {
    margin-left: 20px;
    margin-top: 10px;
    border-left: 2px solid #008c76;
    padding-left: 15px;
}

.single-reply {
    font-size: 14px;
    margin-bottom: 10px;
    padding: 5px 0;
    border-bottom: 1px dotted #eee;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .comment-row {
        flex-direction: column;
        gap: 10px;
    }
    .student-reply-form, .admin-reply, .nested-replies {
        margin-left: 10px;
    }
    .submit-comment-btn {
        width: 100%;
    }
    .comment-wrapper{
      margin: 30px 0;
    }
}

/* Feedback Note Styling */
.feedback-alert {
    background-color: #fdfdfd;
    border: 1px solid #e1e1e1;
    border-left: 5px solid #008c76;
    padding: 20px;
    margin-bottom: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.feedback-container {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.feedback-icon {
    font-size: 24px;
}

.feedback-content h4 {
    margin: 0 0 8px 0;
    color: #008c76;
    font-size: 17px;
    font-weight: 700;
}

.feedback-content p {
    margin: 0;
    line-height: 1.6;
    color: #444;
    font-size: 14.5px;
}

.feedback-content strong {
    color: #000;
}

/* Mobile responsive ke liye chota sa fix */
@media (max-width: 600px) {
    .feedback-alert {
        padding: 15px;
    }
    .feedback-icon {
        font-size: 20px;
    }
}