/* ==========================================================================
   Trang Thư Ngỏ - Letter Style với Khung Viền Đẹp
   ========================================================================== */

.thu-ngo-page {
    padding: 15px 0;
}

.thu-ngo-page .thu-ngo-mid-title {
    text-align: center;
    margin-bottom: 40px;
}

.thu-ngo-page .thu-ngo-mid-title h1 {
    font-size: 32px;
    font-weight: 700;
    color: #1a5f2a;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin: 0;
    position: relative;
    display: inline-block;
}

/* ========== KHUNG THƯ CHÍNH ========== */
.thu-ngo-content-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 20px;
}

.thu-ngo-letter {
    position: relative;
    width: 1320px;
    max-width: 100%;
}

/* ========== GÓC TRANG TRÍ ========== */
.thu-ngo-letter .corner {
    position: absolute;
    width: 50px;
    height: 50px;
    z-index: 2;
}

.thu-ngo-letter .corner-tl {
    top: 5px;
    left: 5px;
}

.thu-ngo-letter .corner-tr {
    top: 5px;
    right: 5px;
}

.thu-ngo-letter .corner-bl {
    bottom: 5px;
    left: 5px;
}

.thu-ngo-letter .corner-br {
    bottom: 5px;
    right: 5px;
}

/* ========== NỘI DUNG THƯ ========== */
.thu-ngo-content {
    position: relative;
    z-index: 1;
    font-size: 17px;
    line-height: 2;
    color: #2c2c2c;
    text-align: justify;
}

.thu-ngo-content ul {
    padding-left: 15px;
}

.thu-ngo-content p:first-child {
    text-indent: 0;
}

.thu-ngo-content h2,
.thu-ngo-content h3 {
    color: #1a5f2a;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

.thu-ngo-content h2 {
    font-size: 20px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.thu-ngo-content h3 {
    font-size: 18px;
}

/* Chữ ký */
.thu-ngo-content .signature {
    text-align: right;
    margin-top: 40px;
    font-style: italic;
    color: #1a5f2a;
}

.thu-ngo-content .signature strong {
    font-size: 18px;
    font-weight: 700;
    display: block;
    margin-top: 5px;
}

/* ========== Responsive ========== */
@media (max-width: 992px) {
    .thu-ngo-page {
        padding: 40px 15px;
    }

    .thu-ngo-page .thu-ngo-mid-title h1 {
        font-size: 26px;
        letter-spacing: 2px;
    }

    .thu-ngo-page .thu-ngo-mid-title h1::before,
    .thu-ngo-page .thu-ngo-mid-title h1::after {
        width: 40px;
    }

    .thu-ngo-letter {
        padding: 50px 50px;
    }

    .thu-ngo-content {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .thu-ngo-page {
        padding: 30px 10px;
    }

    .thu-ngo-page .thu-ngo-mid-title h1 {
        font-size: 22px;
    }

    .thu-ngo-page .thu-ngo-mid-title h1::before,
    .thu-ngo-page .thu-ngo-mid-title h1::after {
        display: none;
    }

    .thu-ngo-content-wrapper {
        padding: 10px;
    }

    .thu-ngo-letter {
        padding: 40px 30px;
        max-width: 100%;
    }

    .thu-ngo-letter::before {
        top: 10px;
        left: 10px;
        right: 10px;
        bottom: 10px;
    }

    .thu-ngo-letter::after {
        top: 18px;
        left: 18px;
        right: 18px;
        bottom: 18px;
    }

    .thu-ngo-letter .corner {
        width: 35px;
        height: 35px;
    }

    .thu-ngo-letter .corner-flower {
        width: 14px;
        height: 14px;
    }

    .thu-ngo-content {
        font-size: 15px;
        line-height: 1.9;
    }

    .thu-ngo-content p {
        text-indent: 1.5em;
        margin-bottom: 18px;
    }
}

@media (max-width: 480px) {
    .thu-ngo-page {
        padding: 20px 8px;
    }

    .thu-ngo-page .thu-ngo-mid-title h1 {
        font-size: 18px;
        letter-spacing: 1px;
    }

    .thu-ngo-letter {
        padding: 35px 20px;
    }

    .thu-ngo-letter .corner {
        width: 28px;
        height: 28px;
    }

    .thu-ngo-letter .corner-tl::before,
    .thu-ngo-letter .corner-bl::before { width: 2px; height: 18px; }
    .thu-ngo-letter .corner-tr::before,
    .thu-ngo-letter .corner-br::before { width: 2px; height: 18px; }
    .thu-ngo-letter .corner-tl::after,
    .thu-ngo-letter .corner-tr::after { width: 18px; height: 2px; }
    .thu-ngo-letter .corner-bl::after,
    .thu-ngo-letter .corner-br::after { width: 18px; height: 2px; }

    .thu-ngo-letter .corner-flower {
        width: 10px;
        height: 10px;
    }

    .thu-ngo-letter .corner-tl .corner-flower { top: 5px; left: 5px; }
    .thu-ngo-letter .corner-tr .corner-flower { top: 5px; right: 5px; }
    .thu-ngo-letter .corner-bl .corner-flower { bottom: 5px; left: 5px; }
    .thu-ngo-letter .corner-br .corner-flower { bottom: 5px; right: 5px; }

    .thu-ngo-content {
        font-size: 14px;
        line-height: 1.85;
    }

    .thu-ngo-content h2 {
        font-size: 17px;
    }

    .thu-ngo-content h3 {
        font-size: 16px;
    }
}
