.banner {
    background-image: url('../images/mr-bg.jpg');
    margin-top: 30px;
}

/* Banner Design */
.index-ban {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    /* Ensure background image covers and is centered */
    background-size: cover;
}

.banner-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    color: #fff;
    z-index: 10;
}

.banner-title {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 30px;
    letter-spacing: 2px;
}

.banner-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 25px;
    gap: 30px;
}

.banner-tabs .tab-item {
    font-size: 18px;
    cursor: pointer;
    padding: 8px 15px;
    border-radius: 4px;
    transition: all 0.3s;
    font-weight: 500;
}

.banner-tabs .tab-item:hover,
.banner-tabs .tab-item.active {
    background-color: #fff;
    color: #0074ff;
    font-weight: bold;
}

.banner-search {
    display: flex;
    justify-content: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.banner-search .search-input {
    width: 600px;
    height: 50px;
    border: none;
    border-radius: 4px 0 0 4px;
    padding: 0 20px;
    font-size: 16px;
    outline: none;
}

.banner-search .search-btn {
    height: 50px;
    padding: 0 30px;
    background-color: #0074ff;
    border: none;
    outline: none;
    border-radius: 0 4px 4px 0;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.3s;
}

.banner-search .search-btn:hover {
    background-color: #0056b3;
}

.banner-search .search-btn svg {
    fill: #fff;
}

/* Filter Box Styles */
.filter-box {
    background: #fff;
    padding: 20px 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-top: -50px;
    /* Overlap banner */
    position: relative;
    z-index: 20;
    margin-bottom: 30px;
}

.filter-row {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-row:last-child {
    margin-bottom: 0;
}

.sort-row {
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.sort-row .label {
    color: #333;
    margin-right: 15px;
    font-weight: bold;
}

.sort-item {
    color: #666;
    margin-right: 25px;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.3s;
}

.sort-item:hover,
.sort-item.active {
    color: #0074ff;
}

.sort-item.active {
    font-weight: bold;
}

.input-row .filter-group {
    display: flex;
    align-items: center;
    margin-right: 30px;
}

.input-row .label {
    margin-right: 10px;
    color: #333;
    white-space: nowrap;
}

.input-small {
    width: 150px;
    height: 36px;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0 10px;
    outline: none;
}

.input-medium {
    width: 180px;
    height: 36px;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0 10px;
    outline: none;
}

.separator {
    margin: 0 10px;
    color: #999;
    font-size: 12px;
}

.unit {
    margin-left: 5px;
    color: #666;
}

.select-wrapper {
    position: relative;
    margin-right: 20px;
}

.select-box {
    height: 36px;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0 30px 0 10px;
    min-width: 150px;
    color: #666;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: #fff url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23999' d='M6 8.825L1.175 4 2.238 2.938 6 6.7l3.763-3.762L10.825 4z'/%3E%3C/svg%3E") no-repeat right 10px center;
    cursor: pointer;
}

.select-box.medium {
    width: 180px;
}

.action-buttons {
    margin-left: auto;
    display: flex;
    gap: 10px;
}

.btn-confirm {
    background: #0074ff;
    color: #fff;
    border: none;
    padding: 0 25px;
    height: 36px;
    border-radius: 4px;
    transition: background 0.3s;
}

.btn-confirm:hover {
    background: #0056b3;
}

.btn-reset {
    background: #f5f5f5;
    color: #666;
    border: none;
    padding: 0 25px;
    height: 36px;
    border-radius: 4px;
    transition: background 0.3s;
}

.btn-reset:hover {
    background: #e0e0e0;
}

/* Data Table Styles */
.table-box {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 50px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    background: #0074ff;
    color: #fff;
    padding: 15px 10px;
    text-align: center;
    font-weight: normal;
    font-size: 14px;
}

.data-table td {
    padding: 15px 10px;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
    color: #666;
    font-size: 14px;
    vertical-align: middle;
}

.data-table tr:hover {
    background-color: #f9fbfc;
}

.data-table .align-left {
    text-align: left;
}

.project-link {
    color: #0074ff;
    text-decoration: none;
    line-height: 1.5;
    display: block;
}

.project-link:hover {
    text-decoration: underline;
}

.btn-view {
    display: inline-block;
    background: #0074ff;
    color: #fff;
    padding: 5px 15px;
    border-radius: 4px;
    font-size: 12px;
    text-decoration: none;
    transition: background 0.3s;
}

.btn-view:hover {
    background: #0056b3;
}

/* Tender Plan List Styles */
.tender-plan-list {
    margin-bottom: 50px;
}

.plan-item {
    background: #fff;
    border-radius: 8px;
    padding: 25px 30px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s, box-shadow 0.3s;
}

.plan-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.plan-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.plan-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    line-height: 1.4;
    flex: 1;
    margin-right: 20px;
}

.btn-link {
    display: inline-block;
    background: #0074ff;
    color: #fff;
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 14px;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.3s;
}

.btn-link:hover {
    background: #0056b3;
}

.plan-info {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.plan-info .price {
    color: #ff6b00;
    font-size: 18px;
    font-weight: bold;
    margin-right: 15px;
    background: #fff5eb;
    padding: 2px 8px;
    border-radius: 4px;
}

.plan-info .region {
    color: #0074ff;
    font-size: 14px;
    background: #eef6ff;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: bold;
    text-decoration: underline;
}

.plan-meta {
    display: flex;
    justify-content: space-between;
    color: #888;
    font-size: 14px;
}

.meta-left p {
    margin-bottom: 8px;
}

.meta-left p:last-child {
    margin-bottom: 0;
}

.meta-right {
    display: flex;
    align-items: flex-end;
}

/* Single row filter box adjustment */
.filter-box.single-row {
    padding: 15px 30px;
    display: flex;
    align-items: center;
}

.filter-box.single-row .filter-row {
    margin-bottom: 0;
    width: 100%;
}

/* Opened Project List Styles */
.opened-project-list {
    margin-bottom: 50px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    padding: 0 30px;
}

.opened-project-list .project-item {
    background: transparent;
    border-radius: 0;
    padding: 25px 0;
    margin-bottom: 0;
    box-shadow: none;
    border-bottom: 1px solid #f0f0f0;
    transition: none;
}

.opened-project-list .project-item:last-child {
    border-bottom: none;
}

.opened-project-list .project-item:hover {
    transform: none;
    box-shadow: none;
}

.project-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    line-height: 1.4;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.tag-member {
    font-size: 12px;
    color: #ff6b00;
    background: #fff5eb;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 10px;
    font-weight: normal;
}

.project-info {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 0;
    border-bottom: none;
}

.project-info .region {
    color: #0074ff;
    font-size: 14px;
    background: #eef6ff;
    padding: 2px 8px;
    border-radius: 4px;
    margin-right: 15px;
    font-weight: bold;
    text-decoration: underline;
}

.project-info .price {
    color: #ff6b00;
    font-size: 18px;
    font-weight: bold;
    background: #fff5eb;
    padding: 2px 8px;
    border-radius: 4px;
    margin-right: 15px;
}

.project-info .date-right {
    margin-left: auto;
    color: #888;
    font-size: 14px;
}

.project-details {
    color: #666;
    font-size: 14px;
    margin-top: 15px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.detail-row:last-child {
    margin-bottom: 0;
}

.detail-item {
    flex: 1;
}

.detail-item.right {
    text-align: right;
}

/* Adjust filter box for opened projects */
.filter-box.single-row .action-buttons {
    margin-left: auto;
}

/* Winning Project List Styles */
.winning-project-list {
    margin-bottom: 50px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    padding: 0 30px;
}

.winning-project-list .project-item {
    background: transparent;
    border-radius: 0;
    padding: 25px 0;
    margin-bottom: 0;
    box-shadow: none;
    border-bottom: 1px solid #f0f0f0;
    transition: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.winning-project-list .project-item:last-child {
    border-bottom: none;
}

.winning-project-list .project-content {
    flex: 1;
    margin-right: 20px;
}

.winning-project-list .project-title {
    margin-bottom: 10px;
}

.winning-project-list .project-meta {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.winning-project-list .region-tag {
    color: #0074ff;
    font-size: 14px;
    background: #eef6ff;
    padding: 2px 8px;
    border-radius: 4px;
    margin-right: 15px;
    font-weight: bold;
}

.winning-project-list .date {
    color: #999;
    font-size: 14px;
}

.winning-project-list .candidate-info {
    color: #666;
    font-size: 14px;
}

.winning-project-list .info-row {
    margin-bottom: 5px;
}

.winning-project-list .info-row:last-child {
    margin-bottom: 0;
}

.winning-project-list .btn-candidate {
    display: inline-block;
    background: #2b65f0;
    color: #fff;
    padding: 8px 25px;
    border-radius: 20px;
    font-size: 14px;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.3s;
}

.winning-project-list .btn-candidate:hover {
    background: #0056b3;
}

.winning-project-list .status-tag {
    display: inline-block;
    background: #999;
    color: #fff;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 10px;
    vertical-align: middle;
    font-weight: normal;
}