body,
html {
    font-family: 'Prompt', sans-serif;
    /* font-family: 'Sarabun', sans-serif; */
    margin: 0;
    font-size: 18px;
    padding-top: 3rem;
    padding-bottom: 0 !important;
    color: #012060;
}

.even_allday {
    color: #012060;
    text-align: center;
    padding: 1rem 0 0;
}

.text-blue1 {
    color: #012060;
}

section {
    margin: 4rem 0 !important;
}

.w-board {
    width: 450px;
    height: auto;
}

.w-board1 {
    width: 270px;
    height: auto;
}

.bg-imgblue {
    background-image: url(/assets/img/bg_carousel.jpg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}


.w-40 {
    width: 40%;
}

h1 {
    font-size: 3rem !important;
}

/* --- ส่วนประกาศและสาระน่ารู้ (Announce Section) --- */
.announce-section {
    background-color: #ffffff;
    padding: 1rem 0;
    border-radius: 4px;
    margin-bottom: 30px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    -webkit-border-radius: 45px;
    -moz-border-radius: 45px;
    -ms-border-radius: 45px;
    -o-border-radius: 45px;
}

.announce-item {
    margin-bottom: 25px;
    overflow: hidden;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #eee;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    -ms-border-radius: 4px;
    -o-border-radius: 4px;
}

.announce-item:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.modal-content {
    border: none;
    border-radius: 4px;
    overflow: hidden;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    -ms-border-radius: 4px;
    -o-border-radius: 4px;
}

.modal-footer {
    border-top: none;
    background: #f8f9fa;
}

/* --- ส่วนแนะนำช่องทาง (Marketing Section) --- */
.marketing-section {
    background-color: #ffffff;
    padding: 1rem 0;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.h-head {
    font-size: 1.4rem;
    font-weight: 700;
    color: #012060;
    margin-top: 15px;
}

.h-detail {
    font-size: 16px;
    color: #666;
    min-height: 50px;
    margin-bottom: 20px;
}

.feature-card {
    padding: 30px 20px;
    border-radius: 6px;
    transition: all 0.3s ease;
    border: 2px solid #ffc107;
    height: 100%;
    -webkit-border-radius: 6px;
    -moz-border-radius: 6px;
    -ms-border-radius: 6px;
    -o-border-radius: 6px;
}

.feature-card:hover {
    background: #fff;
    border-color: 2px solid #ffc107;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.icon-circle {
    width: 80px;
    height: 80px;
    background: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: #ffc107;
    transition: 0.3s;
}

.feature-card:hover .icon-circle {
    background: #ffc107;
    color: #012060;
}

/* --- ส่วนตารางปฏิทินการประมูล (Calendar Section) --- */
.calendar-section {
    background-color: #ffffff;
    padding: 1rem 0;
    border-radius: 6px;
    margin-bottom: 30px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    -webkit-border-radius: 6px;
    -moz-border-radius: 6px;
    -ms-border-radius: 6px;
    -o-border-radius: 6px;
}

.calendar-wrapper {
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(1, 32, 96, 0.1);
    border: 2px solid #f0f0f0;
    cursor: zoom-in;
    transition: transform 0.3s ease;
    background: #fff;
    -webkit-border-radius: 6px;
    -moz-border-radius: 6px;
    -ms-border-radius: 6px;
    -o-border-radius: 6px;
}

.calendar-wrapper:hover {
    transform: translateY(-5px);
    border-color: #01235e;
}

.helper-text {
    color: #888;
    font-size: 0.85rem;
    margin-top: 15px;
}

/* Card Container - เน้นความเป็นระเบียบและสัดส่วนที่เท่ากัน */
.auction-card {
    min-height: 160px;
    border: 1px solid #01235e;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    margin-bottom: 15px;
    display: flex;
    align-items: stretch;
    transition: all 0.2s ease-in-out;
    box-shadow: 5px 7px 5px 0px rgba(1, 33, 96, 1);
}

/* ส่วนวันที่ */
.date-section {
    background: linear-gradient(180deg, #ffc107 0%, #ff9800 100%);
    color: #012060;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 10px 0;
    width: 100px;
    min-width: 100px;
    text-align: center;
}

.date-section .day-name {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
}

.date-section .date-num {
    font-size: 2rem;
    line-height: 1;
    font-weight: 800;
    margin-bottom: 4px;
}

.date-section .month-year {
    font-size: 18px;
    font-weight: 600;
}

/* ส่วนเนื้อหาหลัก */
/* .content-section {
    flex: 1;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    text-align: left;
    border-right: 1px solid #f0f0f0;
} */
.content-section {
    flex-grow: 1;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    text-align: left;
    position: relative;
    z-index: 2;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.bg-imgwhite {
    background-image: url(/assets/img/bg2.png);
}

.content-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.65);
    z-index: -1;
    transition: background 0.5s ease;
}

/* --- Animationtext online 100% --- */
.t-anima-zoom {
    color: #dc3545;
    font-weight: 700;
    margin-left: 2px;
    display: inline-block;
    animation: zoomOutCustom 0.9s ease-in-out infinite;
    -webkit-animation: zoomOutCustom 0.9s ease-in-out infinite;
}

@keyframes zoomOutCustom {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.08);
        opacity: 0.9;
    }

    /* โปร่งแสงขึ้น 50% จากเดิม 0.5 */
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@-webkit-keyframes zoomOutCustom {
    0% {
        -webkit-transform: scale(1);
        opacity: 1;
    }

    50% {
        -webkit-transform: scale(1.08);
        opacity: 0.9;
    }

    100% {
        -webkit-transform: scale(1);
        opacity: 1;
    }
}

/* เมื่อ Hover ให้พื้นหลังชัดขึ้นมาเล็กน้อย */
.auction-card:hover .content-section::before {
    background: rgba(255, 255, 255, 0.5);
}

.auction-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #012060;
}

/* บล็อกประเภทรถ */
.category-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.category-block {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 4px;
}

.category-label {
    min-width: 170px;
    font-weight: 700;
    color: #d9534f;
    font-size: 20px;
    padding-top: 2px;
}

.time-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    flex: 1;
}

.time-item {
    background: #f8f9fa;
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 2px 3px;
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 220px;
}

.loc-name {
    font-size: 14px;
    color: #01235e;
    font-weight: 600;
    min-width: 172px;
}

.time-val {
    font-weight: 700;
    color: #012060;
    background: #fff3cd;
    padding: 0px 3px;
    border-radius: 3px;
    min-width: 58px;
    font-size: 14px;
    /* min-width: 62px;
    font-size: 0.9rem; */
}

.stat-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8f9fa;
    padding: 4px 8px 4px 2px;
    border-radius: 5px;
    border: 1px solid #eee;
    margin-bottom: 2px;
}

.stat-icon {
    width: 52px;
    height: auto;
}

.stat-count {
    font-size: 1rem;
    font-weight: 700;
    color: #d9534f;
}

/* ส่วนปุ่มกดยุคใหม่ (Horizontal Button) */
.action-col {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    width: 160px;
    min-width: 160px;
    background: #f8f9fa;
}

.btn-list {
    background-color: #012060;
    color: #ffc107 !important;
    text-decoration: none !important;
    padding: 10px 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    border-radius: 6px;
    border-bottom: 3px solid #ff9800;
    transition: all 0.2s;
    width: 100%;
    font-size: 16px;
    text-align: center;
}

.btn-list:hover {
    background-color: #d9534f;
    color: #fff !important;
    border-bottom-color: #b03a37;
    transform: scale(1.02);
}

/* ปุ่มกรณีไม่มีรายการประมูล */
.btn-list.disabled {
    background-color: #f1f3f5;
    color: #01235e !important;
    border-bottom: 3px solid #dee2e6;
    cursor: not-allowed;
    pointer-events: none;
    font-size: 16px;
    font-weight: 600;
}

/*กรณีมี อีเว้นเดียวในการ์ด*/
.auction-card.single-cat .category-container {
    margin-top: 1rem;
}

.vehicle-emoji {
    display: inline-block;
    transform: scaleX(-1);
    /* กลับด้าน */
    margin-right: 4px;
    font-size: 18px;
}

.text-auc-condition1,
.text-auc-condition2 {
    color: #012060;
    font-weight: 700 !important;
}

/* Responsive */
@media (max-width: 1200px) {
    .auction-card {
        min-height: 160px;
    }

    .category-label {
        font-size: 15px;
        min-width: 128px;
    }

    .stat-icon {
        width: 36px;
    }

    .stat-item {
        padding: 3px 6px 3px 2px;
    }

    .stat-count,
    .vehicle-emoji {
        font-size: 14px;
    }

    .loc-name {
        font-size: 12px;
        min-width: 148px;
    }

    .time-val {
        min-width: 45px;
        font-size: 11px;
    }

    .time-item {
        padding: 1px;
        gap: 4px;
        min-width: 195px;
    }

    .content-section {
        padding: 8px;
    }
}

@media (max-width: 991px) {
    .w-board {
        width: 300px;
    }

    .w-board1 {
        width: 200px;
    }

    .auction-card {
        flex-direction: column;
    }

    .content-section {
        border-right: none;
        border-bottom: 1px solid #f0f0f0;
        padding: 12px 16px 2px;
    }

    .date-section {
        width: 100%;
        flex-direction: row;
        gap: 15px;
        min-width: auto;
        height: 50px;
    }

    .date-section .date-num {
        font-size: 1.5rem;
    }

    .action-col {
        width: 100%;
        padding: 12px 20px;
    }

    .btn-list {
        height: 45px;
    }
}

@media (max-width: 767px) {

    .text-auc-condition1,
    .text-auc-condition2 {
        font-size: 16px;
    }

    .category-label {
        font-size: 17px;
    }

    .loc-name {
        font-size: 15px;
    }
    .time-val {
        font-size: 14px;
    }
    .mobile-category-row .category-label {
        font-weight: 700;
        color: #d9534f;
    }

    .mobile-category-row .stat-item {
        justify-content: end;
        flex-direction: row;
        gap: 10px;
    }

    .mobile-category-row .stat-icon {
        width: 40px;
    }

    .mobile-category-row .time-item,
    .time-val {
        width: 100%;
    }

    .loc-name {
        min-width: 85%;
    }

    .stat-item {
        background: unset;
        border: unset;
    }

    .auction-title {
        margin-bottom: 4px;
    }

    .mobile-category-row {
        margin-bottom: 10px;
    }
}
@media (max-width: 480px) {
     .loc-name {
        min-width: 82%;
    }
}
@media (max-width: 410px) {
     .loc-name {
        min-width: 78%;
    }
}