﻿@import url('https://fonts.googleapis.com/css2?family=K2D&display=swap');

.imgLogo {
    padding: 5px;
}

.textInfo {
    text-decoration: none !important;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, #4e73df, #224abe);
}

.form-control:focus {
    border-color: #4e73df;
    box-shadow: 0 0 5px rgba(78, 115, 223, 0.5);
}

.logo-container {
    background-color: #f8f9fa; /* สีพื้นหลังอ่อน (เทาอ่อน) */
    padding: 20px; /* เว้นระยะห่างรอบ ๆ */
    border-radius: 10px; /* มุมโค้ง */
    justify-content: center;
}

.logo-img {
    max-width: 100px; /* กำหนดขนาดสูงสุด */
    height: auto; /* รักษาสัดส่วน */
}

.logo-imgLA {
    max-width: 250px; /* กำหนดขนาดสูงสุด */
    height: auto; /* รักษาสัดส่วน */
}
.text-system {
    display: block;
}

@media (max-width: 1160px) {
    .logo-img {
        max-width: 60px; /* ปรับให้เล็กลงบนมือถือ */
    }

    .logo-imgLA {
        max-width: 80px; /* ปรับให้เล็กลงบนมือถือ */
    }
    .text-system {
        display:none;
    }
}

.nav-logo {
    width: 120px; /* ปรับตามต้องการ */
    object-fit: contain; /* ให้รูปไม่บิดเบี้ยว */
}

body, h1, h2, h3, h4, h5, h6, div, a, p, span, label, button, input {
    font-family: "K2D", sans-serif;
}

.label-p {
    font-size: 12px;
    color: #828282;
}

.user-info {
    background: linear-gradient(135deg, #aab6fe 0%, #c39bd3 100%);
    color: #333;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

    .user-info h5 {
        margin-bottom: 15px;
        font-weight: 600;
    }

.user-detail {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

    .user-detail i {
        width: 20px;
        margin-right: 10px;
    }

.pricing-section {
    border-radius: 8px;
    margin-bottom: 20px;
}

.price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #dee2e6;
}

    .price-item:last-child {
        border-bottom: none;
        font-weight: bold;
        color: #28a745;
    }


.recruitment-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: none;
    overflow: hidden;
    height: 100%;
}

    .recruitment-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    }

    .recruitment-card .card-image {
        width: 100%;
        height: 200px;
        object-fit: contain;
        background-color: #fff; /* ใส่พื้นหลังกันว่าง */
        border-radius: 15px 15px 0 0;
    }

    .recruitment-card .card-header {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        border: none;
        padding: 20px;
        border-radius: 0;
        position: relative;
    }

    .recruitment-card .card-title {
        font-size: 1.25rem;
        font-weight: 600;
        margin: 0;
        text-align: center;
    }

    .recruitment-card .card-body {
        padding: 25px;
        flex: 1;
    }

    .recruitment-card .job-info {
        margin-bottom: 15px;
    }

        .recruitment-card .job-info i {
            width: 20px;
            color: #667eea;
            margin-right: 10px;
        }

        .recruitment-card .job-info span {
            color: #555;
            font-size: 0.95rem;
        }

    .recruitment-card .application-fee {
        padding: 8px 15px;
        border-radius: 20px;
        font-weight: 600;
        display: inline-block;
        margin: 10px 0;
        color: white;
    }

    .recruitment-card .fee-free {
        background: linear-gradient(135deg, #28a745, #20c997);
    }

    .recruitment-card .fee-paid {
        background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    }

    .recruitment-card .fee-premium {
        background: linear-gradient(135deg, #ffc107, #ff8c00);
    }

    .recruitment-card .job-tags {
        margin: 15px 0;
    }

    .recruitment-card .job-tag {
        background: #f8f9fa;
        color: #667eea;
        padding: 5px 12px;
        border-radius: 15px;
        font-size: 0.85rem;
        margin-right: 8px;
        margin-bottom: 5px;
        display: inline-block;
        border: 1px solid #e9ecef;
    }

    .recruitment-card .card-action {
        background: #f8f9fa;
        border-top: 1px solid #e9ecef;
        display: flex;
        gap: 10px;
    }

    .recruitment-card .btn-upcoming {
        background: linear-gradient(135deg, #ffc107, #ffd54f);
        border: none;
        color: white;
        padding: 10px 20px;
        border-radius: 25px;
        font-weight: 600;
        transition: all 0.3s ease;
        flex: 1;
    }

        .recruitment-card .btn-upcoming:hover {
            background: #ffc107;
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
            color: white;
        }

    .recruitment-card .btn-closed {
        background: linear-gradient(135deg, #dc3545, #e4606d);
        border: none;
        color: white;
        padding: 10px 20px;
        border-radius: 25px;
        font-weight: 600;
        transition: all 0.3s ease;
        flex: 1;
    }

        .recruitment-card .btn-closed:hover {
            background: #dc3545;
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
            color: white;
        }

    .recruitment-card .btn-apply {
        background: linear-gradient(135deg, #28a745, #20c997);
        border: none;
        color: white;
        padding: 10px 20px;
        border-radius: 25px;
        font-weight: 600;
        transition: all 0.3s ease;
        flex: 1;
    }

        .recruitment-card .btn-apply:hover {
            background: #49975a;
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
            color: white;
        }

    .recruitment-card .btn-details {
        background: linear-gradient(135deg, #007bff, #0056b3);
        border: none;
        color: white;
        padding: 10px 20px;
        border-radius: 25px;
        font-weight: 600;
        transition: all 0.3s ease;
        flex: 1;
    }

        .recruitment-card .btn-details:hover {
            background: #609ad8;
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
            color: white;
        }

    .recruitment-card .status-badge {
        position: absolute;
        top: 15px;
        right: 15px;
        background: #28a745;
        color: white;
        padding: 5px 10px;
        border-radius: 12px;
        font-size: 0.75rem;
        font-weight: 600;
        z-index: 10;
    }

        .recruitment-card .status-badge.urgent {
            background: #dc3545;
        }

    .recruitment-card .deadline-warning {
        color: #dc3545;
        font-weight: 600;
        font-size: 0.9rem;
    }

    .recruitment-card .deadline-normal {
        color: #28a745;
        font-weight: 600;
        font-size: 0.9rem;
    }

    .recruitment-card .image-container {
        position: relative;
        overflow: hidden;
    }

.modal .datePicker, .content .dateTimePickerEn, .content .datePickerEn, .content .datePickerEdit {
    background-color: white !important;
    color: black !important;
    cursor: text !important;
    border: 1px solid #ccc !important;
}

.theadBg, .theadBg tr th {
    background-color: #1565C0 !important;
    color: white !important;
}

label {
    margin-bottom: 0.3rem !important;
    font-size: 16px !important;
}

.main-header {
    background-color: #1e3a8a !important;
    color: white !important;
}

.sidebar-wrapper {
    overflow-x: hidden !important;
}

.main-panel {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
}

.main-panel {
    flex: 1;
}

.footer {
    margin-top: auto;
}

.sidebar {
    background-color: #f8fafc;
}
/* Navigation Menu Styles */
.nav {
    padding: 0;
    margin: 0;
    list-style: none;
}

.nav-item {
    position: relative;
    margin: 2px 0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

    .nav-item a {
        display: flex;
        align-items: center;
        padding: 12px 16px;
        text-decoration: none;
        color: #64748b;
        font-weight: 500;
        border-radius: 8px;
        transition: all 0.3s ease;
        position: relative;
    }

        .nav-item a p {
            margin: 0;
            font-size: 14px;
            transition: all 0.3s ease;
        }

/* Active State - เพิ่ม !important เพื่อให้แน่ใจว่าไม่ถูกทับ */
li.nav-item.active i {
    color: white !important;
}

.nav li.nav-item.active a,
.nav .nav-item.active a,
li.nav-item.active a {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3) !important;
    transform: translateX(4px) !important;
}

    .nav li.nav-item.active a::before,
    .nav .nav-item.active a::before,
    li.nav-item.active a::before {
        content: '' !important;
        position: absolute !important;
        left: 0 !important;
        top: 0 !important;
        width: 4px !important;
        height: 100% !important;
        background: linear-gradient(to bottom, #60a5fa, #3b82f6) !important;
        border-radius: 0 4px 4px 0 !important;
    }

    .nav li.nav-item.active a:hover,
    .nav .nav-item.active a:hover,
    li.nav-item.active a:hover {
        background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
        transform: translateX(6px) !important;
    }

.nav-item.active a i {
    color: #dbeafe;
    transform: scale(1.1);
}

/* Ripple Effect */
.nav-item a::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
}

.nav-item a:active::after {
    width: 120px;
    height: 120px;
}

/* Focus State for Accessibility */
.nav-item a:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

/* Smooth entrance animation */
.nav-item {
    animation: slideIn 0.3s ease forwards;
    opacity: 0;
    transform: translateX(-20px);
}

    .nav-item:nth-child(1) {
        animation-delay: 0.1s;
    }

    .nav-item:nth-child(2) {
        animation-delay: 0.2s;
    }

    .nav-item:nth-child(3) {
        animation-delay: 0.3s;
    }

    .nav-item:nth-child(4) {
        animation-delay: 0.4s;
    }

    .nav-item:nth-child(5) {
        animation-delay: 0.5s;
    }

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-item a {
        padding: 10px 14px;
    }

        .nav-item a i {
            font-size: 16px;
            margin-right: 10px;
        }

        .nav-item a p {
            font-size: 13px;
        }
}






/* Dark Mode Styles */
.pdf-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

    .pdf-container:hover {
        box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    }

.carousel-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.carousel-item img {
    object-fit: cover;
    width: 100%;
}

.carousel-control-prev, .carousel-control-next {
    background: rgba(0,0,0,0.3);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: all 0.3s ease;
}

.carousel-container:hover .carousel-control-prev,
.carousel-container:hover .carousel-control-next {
    opacity: 1;
}

.carousel-control-prev {
    left: 15px;
}

.carousel-control-next {
    right: 15px;
}

.carousel-indicators {
    bottom: 15px;
}

    .carousel-indicators button {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        margin: 0 5px;
    }

.loading-overlay {
    background: rgba(255,255,255,0.9);
    border-radius: 15px;
}

.spinner-border {
    width: 3rem;
    height: 3rem;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-card {
    animation: fadeInUp 0.6s ease;
}

    .animate-card:nth-child(2) {
        animation-delay: 0.2s;
    }

.fullscreen-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
    background: rgba(0,0,0,0.5);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.card:hover .fullscreen-btn {
    opacity: 1;
}

.fullscreen-btn:hover {
    background: rgba(0,0,0,0.7);
    transform: scale(1.1);
}

/*Home*/
.hsk-button {
    border: none;
    border-radius: 20px;
    padding: 30px 20px;
    background: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    min-height: 250px;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: inherit;
}

    .hsk-button:hover {
        transform: translateY(-5px);
        box-shadow: 0 20px 40px rgba(0,0,0,0.15);
        color: inherit;
        text-decoration: none;
    }

.hsk-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    color: #6c757d;
}

.hsk-text {
    font-size: 1.25rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.4;
}

.text-red {
    color: #dc3545 !important;
}

.text-blue {
    color: #0d6efd !important;
}

.container-custom {
    max-width: 1200px;
}

@media (max-width: 768px) {
    .hsk-button {
        padding: 25px 15px;
        min-height: 200px;
    }

    .hsk-icon {
        font-size: 3rem;
        margin-bottom: 15px;
    }

    .hsk-text {
        font-size: 1rem;
    }
}


/*ตกแต่งหน้าแสดงประวัติการสมัครสอบ*/
.border-ExamInfo {
    border: 1px solid #000;
}

.score-number {
    font-size: 50px;
    font-weight: bold;
    color: #17a2b8;
    line-height: 1;
}

.score-section {
    border-right: 2px solid #000;
}

.table-score {
    margin-bottom: 0;
}

    .table-score th,
    .table-score td {
        border: 1px solid #000;
        text-align: center;
        vertical-align: middle;
        padding: 10px 8px;
    }

    .table-score thead th {
        background-color: #f8f9fa;
        font-weight: bold;
    }

.gx-2 {
    --gutter-x: 0.5rem !important;
}

.fw-semibold {
    color: #000000 !important;
}