#sub_content {
    /* padding-top: 0; */
}
*{
    box-sizing: border-box;
}
.review-section {
    padding-top: 100px;
    height:calc(100vh - 200px);
}

.review-section .container {
    max-width: 1200px;
    margin: 0 auto;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.review-section .section-title {
    font-size: 36px;
    font-weight: 700;
    text-align: left;
}

#reviewForm {
    width:100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#reviewForm .form-group {
    width:100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    margin-bottom: 20px;
}

.form-actions {
    width:100%;
}

.children-banner {
    display:none;
}

/* Tabs */
.review-tabs {
    width: 100%;
    margin: 30px auto 50px auto;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    justify-content: flex-start;
}
.review-tabs .tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 18px;
    border: 2px solid #574d3f;
    border-radius: 30px;
    color: #574d3f;
    text-decoration: none;
    font-weight: 700;
    background: #fff;
    transition: all 0.2s ease;
}
.review-tabs .tab:hover { background:#fec00f; color:#000; border-color:#fec00f; }
.review-tabs .tab.active { background:#fec00f; color:#000; border-color:#fec00f; }

/* Grid */
.review-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.review-card {
    position:relative;
    width:100%;
    background: #fff;
    border: 1px solid #d9d1c7;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    min-height:150px;
    padding: 15px;
}
.review-card:hover { transform: translateY(-4px); box-shadow: 0 10px 20px rgba(0,0,0,0.08); }

.review-card .thumb { width: 100%; height: 160px; background:#f7f7f7; overflow:hidden; }
.review-card .thumb img { width: 100%; height: 100%; object-fit: cover; display:block; }

.review-card .meta {
    display:flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    flex-direction: column;
    width:100%;
    height:100%;
}
.review-card .meta .author { font-weight: 800; color:#574d3f; font-size:18px; }
.review-card .meta .date { color:#9b9286; font-size:14px; }

.review-card .excerpt { padding: 0 14px 16px 14px; color:#574d3f; font-size:14px; line-height: 1.6; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; min-height: 126px; }

.empty { text-align:center; color:#9b9286; padding: 40px 0; grid-column: 1 / -1; }

/* Responsive */
@media (max-width: 1200px) { .review-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px)  { .review-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px)  { .review-grid { grid-template-columns: 1fr; } }

/* Review Popup */
.review-popup-overlay { position: fixed; inset: 0; z-index: 1000; display:none; align-items:center; justify-content:center; }
.review-popup-backdrop { position:absolute; inset:0; background: rgba(0,0,0,0.5); }
.review-popup { position: relative; z-index: 1; max-width: 720px; width: calc(100% - 40px); background:#fff; border-radius: 14px; border:1px solid #e9e9e9; box-shadow: 0 20px 60px rgba(0,0,0,0.2); padding: 24px 24px 28px 24px;min-height:300px;}
.review-popup-close { position:absolute; top:-12px; right:-12px; width:34px; height:34px; border:none; background:#fff; border:1px solid #ddd; border-radius:50%; cursor:pointer; font-size:20px; line-height: 1; display:flex; align-items:center; justify-content:center; }
.review-popup-close:hover { background:#fec00f; border-color:#fec00f; color:#000; }
.review-popup-meta { display:flex; align-items:center; justify-content: space-between; gap:10px; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid #eee; }
.review-popup-meta .author { font-weight: 800; color:#574d3f; }
.review-popup-meta .date { color:#9b9286; font-size: 14px; }
.review-popup-content { color:#574d3f; line-height: 1.8; white-space: normal; word-break: keep-all; }

@media (max-width: 540px) {
    .review-popup { margin: 30px auto; padding: 18px 18px 22px 18px; }
    .review-section {
        height:auto;
        padding-top:0;
        padding-bottom:60px;
    }
}

/* Attachments */
.data-files { display:flex; flex-direction: column; gap: 10px; padding: 10px 0 16px 0; margin-bottom: 16px; }
.file-item { display:flex; align-items:center; gap:10px; text-decoration:none; color:#574d3f; border:1px solid #e9e9e9; border-radius:10px; padding:10px 12px; transition: background 0.2s ease, border-color 0.2s ease; }
.file-item:hover { background:#fcfaf8; border-color:#d9d1c7; }
.file-icon { width:22px; height:22px; display:inline-flex; align-items:center; justify-content:center; font-size:18px; }
.file-name { font-weight:700; font-size:14px; }
