﻿.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);
    }

.detail-news, .my-news-breadcum, .dl-nav {
    background: #f2f6fb !important;
}

.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;
    }
/* =====================================================
   COMMENT STUDENT BOX - WEBSITE TRƯỜNG HỌC
===================================================== */

.comment-box {
    --school-primary: #12369b;
    --school-primary-2: #2154c7;
    --school-accent: #f6c54f;
    --school-soft: #eef4ff;
    --school-text: #172554;
    --school-muted: #64748b;
    --school-border: #dbe7fb;
    margin-top: 56px;
    padding: 34px;
    border-radius: 26px;
    background: radial-gradient(circle at top right, rgba(33, 84, 199, 0.12), transparent 34%), linear-gradient(180deg, #ffffff 0%, #f6f9ff 100%);
    border: 1px solid var(--school-border);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
    position: relative;
    overflow: hidden;
}

    /* Vệt trang trí nhẹ */
    .comment-box::before {
        content: "";
        position: absolute;
        width: 180px;
        height: 180px;
        right: -80px;
        top: -80px;
        border-radius: 50%;
        background: rgba(246, 197, 79, 0.2);
        pointer-events: none;
    }

    .comment-box::after {
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        width: 7px;
        height: 100%;
        background: linear-gradient(180deg, var(--school-primary), var(--school-accent));
    }

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

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

.comment-title {
    margin: 0 0 26px;
    padding: 0 0 16px 46px;
    color: var(--school-text);
    font-size: 28px;
    font-weight: 800;
    line-height: 1.35;
    position: relative;
    border-bottom: 1px solid #e6eefc;
    font-family: 'Montserrat-ExtraBold';
}

    .comment-title::before {
        content: "💬";
        position: absolute;
        left: 0;
        top: 1px;
        width: 34px;
        height: 34px;
        border-radius: 12px;
        background: linear-gradient(135deg, var(--school-primary), var(--school-primary-2));
        color: #fff;
        font-size: 17px;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 10px 24px rgba(18, 54, 155, 0.22);
    }

    .comment-title::after {
        content: "";
        position: absolute;
        left: 46px;
        bottom: -1px;
        width: 86px;
        height: 3px;
        border-radius: 99px;
        background: linear-gradient(90deg, var(--school-primary), var(--school-accent));
    }

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

.comment-form {
    display: grid;
    gap: 16px;
    padding: 22px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid #e3ecfb;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.04);
}

    .comment-form .form-control {
        width: 100%;
        min-height: 48px;
        padding: 14px 16px;
        border-radius: 15px;
        border: 1px solid #d8e4f7;
        background: #fff;
        color: #1e293b;
        font-size: 15px;
        font-weight: 600;
        line-height: 1.5;
        outline: none;
        transition: all 0.25s ease;
        box-shadow: 0 4px 14px rgba(15, 23, 42, 0.03);
    }

    .comment-form textarea.form-control {
        min-height: 132px;
        resize: vertical;
    }

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

    .comment-form .form-control:hover {
        border-color: #9db9ee;
    }

    .comment-form .form-control:focus {
        border-color: var(--school-primary-2);
        box-shadow: 0 0 0 4px rgba(33, 84, 199, 0.12), 0 12px 26px rgba(33, 84, 199, 0.1);
        transform: translateY(-1px);
    }

/* =====================================================
   CAPTCHA
===================================================== */

.comment-captcha {
    display: grid;
    grid-template-columns: auto minmax(220px, 1fr);
    gap: 16px;
    align-items: center;
    padding: 16px;
    border-radius: 18px;
    background: #f8fbff;
    border: 1px dashed #c9d9f4;
}

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

.captcha-label {
    color: var(--school-text);
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
}

.captcha-code {
    min-width: 132px;
    height: 48px;
    padding: 0 16px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(18, 54, 155, 0.96), rgba(33, 84, 199, 0.96)), repeating-linear-gradient(45deg, transparent 0 6px, rgba(255,255,255,0.12) 6px 12px);
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    box-shadow: 0 12px 24px rgba(18, 54, 155, 0.22);
    font-family: 'Montserrat-Medium';
}

.captcha-right {
    min-width: 0;
}

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

.comment-form .btn,
.comment-form .btn-primary {
    justify-self: start;
    min-width: 176px;
    height: 50px;
    padding: 0 24px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--school-primary), var(--school-primary-2));
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    cursor: pointer;
    box-shadow: 0 14px 28px rgba(18, 54, 155, 0.24);
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
    font-family: 'Montserrat-Medium';
}

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

    .comment-form .btn:hover,
    .comment-form .btn-primary:hover {
        transform: translateY(-3px);
        box-shadow: 0 18px 34px rgba(18, 54, 155, 0.34);
    }

        .comment-form .btn:hover::before,
        .comment-form .btn-primary:hover::before {
            left: 130%;
        }

    .comment-form .btn:active,
    .comment-form .btn-primary:active {
        transform: scale(0.98);
    }

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

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

.comment-item {
    position: relative;
    padding: 22px;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid #e4ecf8;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.055);
    overflow: hidden;
    transition: all 0.28s ease;
}

    .comment-item::before {
        content: "";
        position: absolute;
        inset: 0 auto 0 0;
        width: 5px;
        background: linear-gradient(180deg, var(--school-primary), var(--school-accent));
    }

    .comment-item:hover {
        transform: translateY(-4px);
        border-color: #cbdcf8;
        box-shadow: 0 18px 40px rgba(18, 54, 155, 0.11);
    }

/* Header bình luận */
.comment-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

    .comment-head strong {
        position: relative;
        padding-left: 38px;
        color: var(--school-text);
        font-size: 16px;
        font-weight: 800;
        line-height: 1.4;
    }

        .comment-head strong::before {
            content: "🎓";
            position: absolute;
            left: 0;
            top: 50%;
            width: 28px;
            height: 28px;
            transform: translateY(-50%);
            border-radius: 50%;
            background: var(--school-soft);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 15px;
        }

    .comment-head span {
        display: inline-flex;
        align-items: center;
        min-height: 30px;
        padding: 5px 12px;
        border-radius: 999px;
        background: #f8fafc;
        border: 1px solid #e2e8f0;
        color: var(--school-muted);
        font-size: 13px;
        font-weight: 600;
        white-space: nowrap;
    }

/* Nội dung bình luận */
.comment-content {
    padding: 16px 18px;
    border-radius: 16px;
    background: #f8fbff;
    border: 1px solid #edf4ff;
    color: #334155;
    font-size: 15.5px;
    font-weight: 500;
    line-height: 1.75;
    word-break: break-word;
    font-family: 'Montserrat-Medium';
}

/* =====================================================
   ADMIN REPLY
===================================================== */

.admin-reply {
    margin-top: 16px;
    padding: 16px 18px 16px 54px;
    border-radius: 16px;
    background: linear-gradient(135deg, #eff6ff, #fffbeb);
    border: 1px dashed #aac2ee;
    color: #1e293b;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.7;
    position: relative;
    font-family: 'Montserrat-Medium';
}

    .admin-reply::before {
        content: "🏫";
        position: absolute;
        left: 18px;
        top: 17px;
        width: 25px;
        height: 25px;
        border-radius: 50%;
        background: #ffffff;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
    }

    .admin-reply strong {
        display: block;
        margin-bottom: 4px;
        color: var(--school-primary);
        font-size: 15px;
        font-weight: 900;
    }

/* =====================================================
   RESPONSIVE COMMENT STUDENT
===================================================== */

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

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

    .comment-captcha {
        grid-template-columns: 1fr;
    }

    .comment-form .btn,
    .comment-form .btn-primary {
        width: 100%;
        justify-self: stretch;
    }
}

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

        .comment-box::after {
            width: 4px;
        }

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

        .comment-title::before {
            width: 32px;
            height: 32px;
            border-radius: 10px;
            font-size: 16px;
        }

        .comment-title::after {
            left: 42px;
            width: 70px;
        }

    .comment-form {
        padding: 16px;
        border-radius: 18px;
        gap: 14px;
    }

        .comment-form .form-control {
            min-height: 46px;
            padding: 13px 14px;
            border-radius: 13px;
            font-size: 16px;
        }

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

    .comment-captcha {
        padding: 14px;
        border-radius: 16px;
        gap: 12px;
    }

    .captcha-left {
        width: 100%;
        justify-content: space-between;
    }

    .captcha-label {
        font-size: 13.5px;
    }

    .captcha-code {
        min-width: 118px;
        height: 42px;
        font-size: 17px;
        letter-spacing: 4px;
        border-radius: 12px;
    }

    .comment-form .btn,
    .comment-form .btn-primary {
        height: 48px;
        font-size: 14px;
    }

    .comment-list {
        margin-top: 24px;
        gap: 15px;
    }

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

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

        .comment-head strong {
            font-size: 15.5px;
            padding-left: 34px;
        }

            .comment-head strong::before {
                width: 26px;
                height: 26px;
            }

        .comment-head span {
            font-size: 12.5px;
            min-height: 28px;
            padding: 4px 10px;
        }

    .comment-content {
        padding: 14px;
        border-radius: 14px;
        font-size: 14.5px;
        line-height: 1.7;
    }

    .admin-reply {
        padding: 14px 14px 14px 48px;
        border-radius: 14px;
        font-size: 14.5px;
    }

        .admin-reply::before {
            left: 14px;
            top: 15px;
        }
}

@media (max-width: 480px) {
    .comment-box {
        padding: 20px 14px;
    }

    .captcha-left {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .captcha-code {
        width: 100%;
    }

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