.admin-answer-box,
.admin-badge,
.material-symbols-rounded {
    color: #000;
}





/* Sub Hero */
.sub-hero {
    padding-top: 140px;
    padding-bottom: 60px;
    background: #5d4037;
    color: #fff;
    text-align: center;
}
.sub-hero-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 16px;
}
.sub-hero-desc {
    font-size: 16px;
    color: #94a3b8;
}

/* Board Container */
.board-section {
    padding: 80px 0;
    min-height: 600px;
    background:#fff;
}

/* Search Bar */
.board-search-wrap {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    align-items: center;
}
.search-box {
    display: flex;
    gap: 8px;
}
.search-input {
    border: 1px solid #e2e8f0;
    padding: 10px 16px;
    border-radius: 8px;
    outline: none;
    font-size: 14px;
    width: 200px;
}
.search-input:focus {
    border-color: #ffb347;
}

/* Board Table */
.board-table {
    width: 100%;
    border-top: 2px solid #5d4037;
    border-collapse: collapse;
}
.board-table th {
    padding: 16px;
    background: #f8fafc;
    border-bottom: 1px solid #cbd5e1;
    font-weight: 700;
    color: #1e293b;
    font-size: 15px;
    text-align: center;
}
.board-table td {
    padding: 16px;
    border-bottom: 1px solid #e2e8f0;
    text-align: center;
    color: #475569;
    font-size: 14px;
}
.board-table td.subject {
    text-align: left;
}
.board-table td.subject a {
    color: #1e293b;
    font-weight: 500;
}
.board-table td.subject a:hover {
    color: #ffb347;
    text-decoration: underline;
}

/* Buttons */
.btn-board {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.btn-dark {
    background: #5d4037;
    color: #fff;
}
.btn-dark:hover { background: #334155; }
.btn-white {
    background: #fff;
    border: 1px solid #cbd5e1;
    color: #475569;
}
.btn-white:hover { border-color: #94a3b8; background: #f8fafc; }
.btn-blue {
    background: #ffb347;
    color: #fff;
}
.btn-blue:hover { background: #ffb347; }

/* View Page */
.view-header {
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 20px;
    margin-bottom: 40px;
}
.view-title {
    font-size: 24px;
    font-weight: 700;
    color: #5d4037;
    margin-bottom: 12px;
}
.view-meta {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: #64748b;
}
.view-content {
    min-height: 300px;
    line-height: 1.8;
    color: #334155;
    margin-bottom: 60px;
}
.view-btns {
    border-top: 1px solid #e2e8f0;
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
}

/* Write Form */
.form-group {
    margin-bottom: 24px;
}
.form-label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
    color: #1e293b;
}
.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-family: inherit;
    font-size: 15px;
}
.form-control:focus {
    border-color: #ffb347;
    outline: none;
}
textarea.form-control {
    resize: vertical;
    min-height: 300px;
}
.write-footer {
    border-top: 1px solid #e2e8f0;
    padding-top: 30px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* =========================================
   MOBILE RESPONSIVE LIST VIEW
========================================= */
@media (max-width: 767px) {

/* Buttons */
.btn-board {
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}



    /* 1. Reset Table Layout */
    .board-table {
        display: block; /* Flex container or block */
        width: 100%;
    }

    .board-table thead,
    .board-table colgroup {
        display: none; /* Hide header and colgroup */
    }




    .board-table tbody {
        display: block;
        width: 100%;
    }

    .board-table tr {
        display: flex; /* Flexbox for row */
        flex-wrap: nowrap;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 12px 0;
        border-bottom: 1px solid #f1f5f9;
    }

    /* 2. Style Cells */
    .board-table td {
        display: block;
        padding: 0;
        border: none;
        font-size: 13px;
        color: #475569;
    }

    /* 3. Column Visibility & Widths */
    /* Hide 'No' and 'Date' to save space */
    .board-table .num { display: none; }
    .board-table .date { display: none; }

    /* Title Column (Flex Grow) */
    .board-table .td-title {
        flex: 1; /* Take remaining space */
        min-width: 0; /* Important for text-overflow */
        text-align: left;
        padding-right: 10px !important;
    }

    .board-table .td-title a {
        display: block;
        width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 14px;
        color: #1e293b;
    }

    /* Writer Column (Auto width) */
    .board-table .writer {
        width: auto;
        font-size: 12px;
        color: #94a3b8;
        margin-right: 8px;
        white-space: nowrap;
    }

    /* Status Column (Auto width) */
    .board-table .status {
        width: auto;
        text-align: right;
        flex-shrink: 0; /* Keep size */
    }

    /* Adjust Badge size */
    .status-badge {
        padding: 4px 8px;
        font-size: 11px;
    }


    .search-box .search-input {
        width: 100%; /* Full width search */
        flex: 1;
    }

    .search-box i {color:#fff;}

    /* Sub Hero Adjustment */
    .sub-hero {
        padding-top: 100px;
        padding-bottom: 40px;
    }
    .sub-hero-title { font-size: 28px; }
}





/* =========================================
   PASSWORD WALL STYLES
   ========================================= */
/* Main Container */
.password-wall {
    max-width: 500px;
    margin: 80px auto;
    padding: 60px 40px;
    background: #f8fafc; /* Subtle light background */
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}
/* Icon & Typography */
.password-wall h3 {
    font-size: 24px;
    font-weight: 700;
    color: #5d4037; /* Dark Navy */
    margin-bottom: 8px;
    margin-top: 0;
}
.password-wall p {
    font-size: 15px;
    color: #64748b; /* Slate Gray */
    margin-bottom: 24px;
    line-height: 1.5;
}
/* Form Elements */
.password-wall form {
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap; /* Responsive wrap */
    margin-bottom: 10px;
}
.password-wall input[type="password"] {
    padding: 12px 16px;
    font-size: 15px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    width: 220px;
    outline: none;
    transition: all 0.2s;
    font-family: inherit;
}
.password-wall input[type="password"]:focus {
    border-color: #ffb347; /* Vivid Blue */
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}
.password-wall button[type="submit"] {
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    background: #5d4037; /* Dark Navy Button */
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}
.password-wall button[type="submit"]:hover {
    background: #334155;
}
/* Error Message */
.password-wall .error-msg {
    color: #dc2626; /* Red */
    font-size: 14px;
    margin-top: 12px;
    margin-bottom: 0;
    font-weight: 500;
}
/* Mobile Responsiveness */
@media (max-width: 480px) {
    .password-wall {
        margin: 40px 20px;
        padding: 40px 20px;
    }

    .password-wall form {
        flex-direction: column;
        align-items: stretch;
    }

    .password-wall input[type="password"] {
        width: 100%;
    }

    .password-wall button[type="submit"] {
        width: 100%;
    }
}