﻿.home-news-btn span {
    color: var(--default-color-1);
    font-family: 'Inter_24pt-Medium';
    font-size: 15.743px;
    font-style: normal;
    font-weight: 400;
    line-height: 135%;
    margin-right: 5px;
}

.p-news-item__type2 {
    transition: transform 0.3s;
}

    .p-news-item__type2:hover {
        transform: translateY(-5px);
        box-shadow: 0px 4px 16px 0px rgba(44, 44, 44, 0.08);
    }

.home-news-btn {
    margin-top: 6px;
    display: flex;
    align-items: center;
}

/* Mobile */
@media (max-width: 739px) {
    .home-news-btn span {
        font-size: 13.743px;
    }
}

/*Hoc Sinh*/
.detail-file {
    margin-top: 30px;
    padding: 20px;
    border-radius: 10px;
    background: #f5f7fb;
    border: 1px solid #e4e7ec;
}

    .detail-file h3 {
        margin-bottom: 15px;
        font-size: 20px;
        font-weight: 700;
    }

.btn-download-file {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #0d6efd;
    color: #fff !important;
    padding: 12px 20px;
    border-radius: 8px;
    transition: .3s;
}

    .btn-download-file:hover {
        background: #0b5ed7;
    }

/*Binh Luan*/
.comment-box {
    margin-top: 50px;
}

.comment-title {
    margin-bottom: 20px;
    font-size: 28px;
    font-weight: 700;
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

    .comment-form textarea {
        min-height: 120px;
    }

.comment-list {
    margin-top: 30px;
}

.comment-item {
    border-bottom: 1px solid #eee;
    padding: 20px 0;
}

.comment-head {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

    .comment-head span {
        color: #888;
        font-size: 13px;
    }

.comment-content {
    line-height: 1.7;
}
/* =========================
   COMMENT BOX - HỌC SINH
========================= */

.comment-box {
    margin-top: 60px;
    padding: 35px;
    border-radius: 24px;
    background: #EDFFF0;
    border: 1px solid #e5edf8;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04), 0 2px 8px rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
}

    /* Hiệu ứng nền nhẹ */
    .comment-box::before {
        content: "";
        position: absolute;
        width: 220px;
        height: 220px;
        background: rgba(13, 110, 253, 0.05);
        border-radius: 50%;
        top: -100px;
        right: -80px;
        z-index: 0;
    }

    .comment-box > * {
        position: relative;
        z-index: 2;
    }

/* =========================
   TITLE
========================= */

.comment-title {
    font-size: 30px;
    font-weight: 800;
    margin-bottom: 28px;
    color: #14213d;
    position: relative;
    padding-left: 18px;
    line-height: 1.3;
    font-family: 'OpSan-ExtraBold';
    margin-top: 0;
}

    .comment-title::before {
        content: "";
        width: 6px;
        height: 100%;
        border-radius: 30px;
        background: linear-gradient(180deg, #00a85a, #39f838);
        position: absolute;
        left: 0;
        top: 0;
    }

/* =========================
   FORM
========================= */

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

    /* INPUT + TEXTAREA */

    .comment-form .form-control {
        width: 100%;
        border-radius: 16px;
        border: 1px solid #dbe6f3;
        background: #fff;
        padding: 16px 18px;
        font-family: 'Inter_24pt-Medium';
        font-size: 15px;
        color: #1e293b;
        transition: all .3s ease;
        box-shadow: 0 2px 8px rgba(0,0,0,0.02);
    }

        /* Placeholder */

        .comment-form .form-control::placeholder {
            color: #94a3b8;
        }

        /* Hover */

        .comment-form .form-control:hover {
            border-color: #93c5fd;
        }

        /* Focus */

        .comment-form .form-control:focus {
            outline: none;
            border-color: #0d6efd;
            box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.12), 0 10px 25px rgba(13, 110, 253, 0.08);
            transform: translateY(-1px);
        }

    /* TEXTAREA */

    .comment-form textarea.form-control {
        min-height: 140px;
        resize: vertical;
        line-height: 1.7;
    }

    /* =========================
   BUTTON
========================= */

    .comment-form .btn {
        align-self: flex-start;
        min-width: 190px;
        height: 52px;
        border: none;
        border-radius: 14px;
        background: var(--default-color-4);
        color: #fff;
        font-size: 15px;
        font-weight: 700;
        letter-spacing: .3px;
        transition: all .3s ease;
        font-family: 'OpSan-ExtraBold';
        position: relative;
        overflow: hidden;
        cursor: pointer;
        box-shadow: 0 10px 20px rgba(37, 99, 235, 0.25);
    }

        /* Shine effect */

        .comment-form .btn::before {
            content: "";
            position: absolute;
            top: 0;
            left: -120%;
            width: 100%;
            height: 100%;
            background: linear-gradient( 120deg, transparent, rgba(255,255,255,.35), transparent );
            transition: .6s;
        }

        .comment-form .btn:hover::before {
            left: 120%;
        }

        /* Hover */

        .comment-form .btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 15px 30px rgba(37, 99, 235, 0.35);
        }

        /* Click */

        .comment-form .btn:active {
            transform: scale(.98);
        }

/* =========================
   COMMENT LIST
========================= */

.comment-list {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

/* ITEM */

.comment-item {
    background: #fff;
    border-radius: 20px;
    padding: 22px;
    border: 1px solid #edf2f7;
    transition: all .3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 18px rgba(0,0,0,0.03);
}

    /* Hover */

    .comment-item:hover {
        transform: translateY(-3px);
        box-shadow: 0 15px 35px rgba(0,0,0,0.06);
    }

    /* Left border animation */

    .comment-item::before {
        content: "";
        position: absolute;
        left: 0;
        top: 20px;
        width: 4px;
        height: calc(100% - 40px);
        border-radius: 20px;
        background: linear-gradient(180deg, #0d6efd, #38bdf8);
    }

/* HEAD */

.comment-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

    /* NAME */

    .comment-head strong {
        font-size: 16px;
        color: #0f172a;
        font-weight: 700;
    }

    /* DATE */

    .comment-head span {
        font-size: 13px;
        color: #94a3b8;
    }

/* CONTENT */

.comment-content {
    color: #334155;
    font-size: 15px;
    line-height: 1.8;
    word-break: break-word;
}

/* =========================
   EMPTY COMMENT
========================= */

.comment-empty {
    text-align: center;
    padding: 40px 20px;
    color: #94a3b8;
    font-size: 15px;
}

/* =========================
   MOBILE
========================= */

@media (max-width: 991px) {
    .comment-box {
        padding: 28px;
        border-radius: 20px;
    }

    .comment-title {
        font-size: 26px;
    }

    .comment-form .btn {
        width: 100%;
    }
}

@media (max-width: 767px) {
    .comment-box {
        margin-top: 40px;
        padding: 22px 18px;
        border-radius: 18px;
    }

    .comment-title {
        font-size: 22px;
        margin-bottom: 22px;
    }

    .comment-form {
        gap: 14px;
    }

        .comment-form .form-control {
            padding: 14px 15px;
            font-size: 16px;
            border-radius: 14px;
        }

        .comment-form textarea.form-control {
            min-height: 120px;
        }

        .comment-form .btn {
            height: 48px;
            min-width: unset;
            width: 100%;
            border-radius: 12px;
            font-size: 16px;
        }

    .comment-item {
        padding: 18px;
        border-radius: 16px;
    }

    .comment-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .comment-content {
        font-size: 14px;
        line-height: 1.7;
    }
}

.comment-captcha {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
    flex-direction: row-reverse;
}

.captcha-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.captcha-label {
    font-weight: 600;
    color: #1e293b;
}

.captcha-code {
    min-width: 130px;
    height: 50px;
    border-radius: 12px;
    font-family: 'Inter_24pt-Medium';
    background: var(--default-color-4);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: normal;
    letter-spacing: 5px;
    user-select: none;
    box-shadow: 0 10px 20px rgba(37,99,235,.2);
}

.captcha-right {
    flex: 1;
    min-width: 200px;
}

@media(max-width:767px) {
    .comment-captcha {
        flex-direction: column;
        align-items: flex-start;
    }

    .captcha-code {
        min-width: 130px;
        height: 42px;
        font-size: 18px;
    }

    .captcha-right {
        width: 100%;
    }
}
/* =========================
   COMMENT LIST
========================= */
.comment-list {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

/* =========================
   COMMENT ITEM
========================= */
.comment-item {
    position: relative;
    background: #ffffff;
    border-radius: 18px;
    padding: 22px;
    border: 1px solid #edf1f7;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
    transition: all 0.35s ease;
    overflow: hidden;
}

    /* Hiệu ứng line top */
    .comment-item::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 4px;
        background: linear-gradient(90deg, #2563eb, #06b6d4);
        transform: scaleX(0);
        transform-origin: left;
        transition: transform 0.4s ease;
    }

    /* Hover */
    .comment-item:hover {
        transform: translateY(-4px);
        box-shadow: 0 14px 36px rgba(37, 99, 235, 0.12);
        border-color: #dbeafe;
    }

        .comment-item:hover::before {
            transform: scaleX(1);
        }

/* =========================
   COMMENT HEAD
========================= */
.comment-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

    .comment-head strong {
        font-size: 17px;
        color: #0f172a;
        font-weight: 700;
        position: relative;
        padding-left: 28px;
        font-family: 'OpSan-ExtraBold';
    }

        /* Avatar mini */
        .comment-head strong::before {
            content: "👨‍🎓";
            position: absolute;
            left: 0;
            top: -1px;
            font-size: 18px;
        }

    .comment-head span {
        font-size: 13px;
        color: #64748b;
        background: #f8fafc;
        padding: 6px 12px;
        border-radius: 30px;
        border: 1px solid #e2e8f0;
        font-family: 'Montserrat-Medium';
    }

/* =========================
   COMMENT CONTENT
========================= */
.comment-content {
    font-size: 16px;
    line-height: 1.8;
    color: #334155;
    background: #f8fbff;
    padding: 18px;
    border-radius: 14px;
    border-left: 4px solid #3b82f6;
    word-break: break-word;
    font-family: 'Montserrat-Medium';
}

/* =========================
   ADMIN REPLY
========================= */
.admin-reply {
    margin-top: 18px;
    padding: 16px 18px;
    border-radius: 14px;
    background: linear-gradient(135deg, #eff6ff, #f0fdf4);
    border: 1px dashed #93c5fd;
    position: relative;
    animation: fadeReply 0.5s ease;
}

    /* Icon phản hồi */
    .admin-reply::before {
        content: "🏫";
        position: absolute;
        left: 18px;
        top: 16px;
        font-size: 18px;
    }

    .admin-reply strong {
        display: block;
        margin-bottom: 6px;
        color: #1d4ed8;
        font-size: 15px;
        padding-left: 28px;
    }

.admin-reply {
    color: #0f172a;
    line-height: 1.7;
    font-size: 16px;
    font-family: 'Montserrat-Medium';
}

/* =========================
   ANIMATION
========================= */
@keyframes fadeReply {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================
   MOBILE
========================= */
@media (max-width: 768px) {
    .comment-item {
        padding: 18px;
        border-radius: 14px;
    }

    .p-news-link__type2 .title {
        font-size: 16px;
    }

    .p-news-link__type2 .descript {
        font-size: 14px;
    }

    .detail-news-wrap .img {
        margin-top: 20px;
    }

    .comment-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .p-banner img {
        height: 100%;
        position: relative;
    }

    .p-banner {
        height: 100%;
    }

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

    .comment-content {
        font-size: 14px;
        padding: 14px;
    }

    .admin-reply {
        padding: 14px;
    }

        .admin-reply strong {
            font-size: 14px;
        }
}