/* ตัว เมนูและหัว */

body {
    background: linear-gradient(135deg, #f0f0f0, #e8ebf0);
    margin: 0;
    padding: 0;
    font-family: 'Noto Sans Thai', sans-serif !important;
    min-height: 100vh;
    margin-left: 150px; 
    /* display: flex;
    flex-direction: column; */
    padding-bottom: 100px; 



}

@media (max-width: 768px) {
    body {
        margin-left: 0; 
    }
}

.sidebar {
    background-color: #ffffff;
    height: 100vh;
    width: 150px;
    position: fixed;
    top: 0;
    left: 0;
    border-radius: 0 15px 15px 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 20px;
    transition: transform 0.3s ease;
    z-index: 1002; 

}
.sidebar .nav-link.no-underline {
    text-decoration: none;
}

.sidebar .logo {
    width: 120px; 
    height: auto; 
    max-width: 100%; 
    margin-bottom: 20px;
    display: block; 
}


.sidebar .nav-link {
    color: #5c5c5c;
    text-align: center;
    width: 120px;
    padding: 15px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 20px;
}
.sidebar .nav-link.active {
    /* background-color: #8915c4; */
    background: linear-gradient(135deg,  #0b8793, #4e13d6 );
    color: white;
}
.sidebar .nav-link:hover {
    /* background-color: #e2e6ea; */
    color: #4680ff;
}
.sidebar .nav-link i {
    font-size: 24px;
}
.sidebar .nav-link span {
    font-size: 12px;
}
/* .main-content {
    padding: 20px;
    margin-left: 100px;
    flex-grow: 1;
} */


.header {
    display: none;
    padding: 10px 20px;
    background-color: #ffffff;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    justify-content: space-between;
    align-items: center;
}


@media (max-width: 768px) {
    .header {
        display: flex;
    }
}

.header .menu-btn {
    font-size: 24px;
    background: none;
    border: none;
}
.header .user-profile {
    display: flex;
    align-items: center;
}
.header .user-profile img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}


@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    .sidebar.active {
        transform: translateX(0);
    }
    .main-content {
        margin-left: 0;
    }
    .header {
        display: flex;
    }
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1001; 
}
.overlay.active {
    display: block;
}

/* .main-content {
    margin-top: 40px;
    padding: 40px;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    background: linear-gradient(135deg,  #360033, #0b8793 );
} */

.main-content {
    padding: 50px;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    /* background: linear-gradient(to bottom,  #1f1b60, #5d1d9c , #069fbe , rgba(11, 135, 147, 0)); */
    background: linear-gradient(to bottom,  #360033 , #0b5193 , #0b8793  , rgba(255, 255, 255, 0));

}



.content-box {
    margin-top: 40px;
    max-width: 800px;
}

.content-box h1 {
    font-size: 36px;
    color: #ffffff;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5); 

}

.content-box p {
    font-size: 18px;
    color: #ffffff;
    margin-bottom: 30px;
    
}

@media (max-width: 768px) {
    .main-content {
        display: flex;
        flex-direction: column; 
        align-items: center;
        text-align: center;
    }

    .ai-image {
        margin: 20px 0 0px 0; 
        width: 250px; 
    }

    .content-box {
        margin-top: 50;
        max-width: 100%;
    }
}

.register-btn {
    background: linear-gradient(135deg,  #4e13d6, #4e13d6 );
    color: #ffffff;
    padding: 10px 20px;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-family: 'Noto Sans Thai', sans-serif; 
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2); 
    transition: box-shadow 0.3s ease; 

}

.register-btn:hover {
    background: linear-gradient(135deg,  #0b8793, #0b8793 );
    color: #ffffff;
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.3); 
}

.ai-image {
    margin-left: 0px;
}

/* ตัว Body */

.main-body {
    padding: 40px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    
}

@media (max-width: 768px) {
    .main-body {
        margin-left: 0; 
        padding: 20px; 
    }
}

.training-options {
    display: flex;
    gap: 20px;
    width: 100%;
    max-width: 800px;
}

.training-option {
    flex: 1;
    background-color: #ffffff;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.training-option img {
    max-width: 100px;
    margin-bottom: 15px;
}

/* .financial-discipline-section {
    width: 100%; 
    padding: 40px; 
    text-align: center;
    background-color: #007bff; 
    color: #ffffff; 
    margin: 0; 
    border-radius: 0; 
} */

.alert {
    max-width: 800px;
    margin: 10px 0;
}

/* .announcements .announcement {
    max-width: 800px;
    margin-top: 10px;
}

.announcements .alert-danger {
    background-color: #ff6f6f;
    color: white;
} */

button.btn-outline-primary {
    margin-top: 10px;
}

/* .card {
    background-color: #ffffff;
    border-radius: 20px;
    box-shadow: 0px 0px 15px 0px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 2; 
    margin: auto;

    margin-left: 100px; 
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

@media (max-width: 768px) {
    .card {
        margin-left: 0; 
        padding: 20px; 
    }
} */

.card-secondary {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
}

@media (max-width: 768px) {
    .card-secondary {
        margin-bottom: 15px; 
    }
}

.header-image {
    position: relative;
    text-align: center;
    color: white;
    overflow: hidden;
}

.header-image img {
    width: 100vw; 
    height: auto; 
    object-fit: cover; 
}

/* .underline-text {
    display: inline-block;
    position: relative;
}

.underline-text::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px; 
    width: 100%;
    height: 3px; 
    background-color: #ff6f6f; 
} */

.subject-container {
    display: flex;
    flex-wrap: wrap; 
    gap: 20px;
    justify-content: center;
}

.subject-card {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.image-container {
    flex: 0 0 150px; 
    margin-right: 20px;
}

.image-container img {
    width: 150px;
    height: 150px;
    border-radius: 10px;
    object-fit: cover;
}

.info-container {
    flex-grow: 1;
}

.info-container h5 {
    margin: 0;
}

.info-container ul {
    margin: 10px 0;
    padding-left: 20px;
    font-size: 14px;
    color: #333;
}



/* .badge .dot {
    width: 10px;
    height: 10px;
    background-color: white;
    border-radius: 50%;
    display: inline-block;
    margin-right: 5px;
} */



.custom-badge1 {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #03b921; 
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 10px;
    font-weight: bold;
    z-index: 1;
}

.custom-badge2 {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #e92929; 
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 10px;
    font-weight: bold;
    z-index: 1;
}

.custom-badge3 {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #9d1ce7; 
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 10px;
    font-weight: bold;
    z-index: 1;
}


.custom-badge4 {
    background-color: #eeeeee; 
    color: rgb(27, 27, 27); 
    padding: 5px 10px; 
    border-radius: 20px; 
    font-size: 14px; 
    font-weight: bold; 
    display: inline-block; 
    text-align: center; 
    position: relative; 
}

.custom-badge4::before {
    content: ''; 
    position: absolute; 
    left: 10px; 
    top: 50%; 
    transform: translateY(-50%); 
    width: 10px; 
    height: 10px; 
    background-color: #28a745; 
    border-radius: 50%; 
}

.custom-badge4 {
    padding-left: 25px; 
}


.custom-badge5 {
    background-color: #eeeeee; 
    color: rgb(27, 27, 27); 
    padding: 5px 10px; 
    border-radius: 20px; 
    font-size: 14px; 
    font-weight: bold; 
    display: inline-block; 
    text-align: center; 
    position: relative; 
}

.custom-badge5::before {
    content: ''; 
    position: absolute; 
    left: 10px; 
    top: 50%; 
    transform: translateY(-50%); 
    width: 10px; 
    height: 10px; 
    background-color: #d81010; 
    border-radius: 50%; 
}

.custom-badge5 {
    padding-left: 25px; 
}



.custom-badge .dot {
    width: 10px;
    height: 10px;
    background-color: #FFFFFF; 
    border-radius: 50%;
    margin-right: 5px;
}

.video-button {
    position: absolute;
    bottom: 18px;
    right: 18px;
    padding: 10px 12px;
    /* background-color: #9900e0;  */
    background: linear-gradient(135deg,  #0b8793, #4e13d6 );
    color: #ffffff; 
    text-decoration: none;
    border-radius: 30px; 
    font-size: 14px;
    font-weight: bold;
    /* border: 1px solid #b3b3b3;  */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); 
    transition: all 0.3s ease; 
}

.video-button:hover {
    background-color: #d4d4d4; 
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2); 
    border: 1px solid #7bc2c9; 
}

.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    border-top: 1px solid #ddd;
    background-color: #f8f9fa; 
    color: #6c757d; 
    font-size: 13px;
    text-align: center;
    padding: 10px 0;
    z-index: 1000; 
}

/* สไตล์ของ footer เนื้อหา */
.footer p,
.footer small {
    margin: 0;
    color: #575757;
}

.footer a {
    color: #007bff; 
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}



.modal-dialog-centered {
    display: flex;
    align-items: center;
    justify-content: center;
}


.modal-content {
    background-color: rgba(255, 255, 255, 0.5); 
    border-radius: 10px;
    backdrop-filter: blur(10px); 
}

.modal-header, .modal-body, .modal-footer {
    background-color: rgba(255, 255, 255, 0.4); 
}

.modal-backdrop.show {
    opacity: 0.6;
    background-color: rgba(0, 0, 0, 0.6); 
}




.custom-button {
    background-color: rgba(0, 0, 0, 0.05);
    border: none;
    color: black;
    font-weight: bold;
    border-radius: 10px;
    width: 100%;
    padding: 10px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.icon-title {
    display: flex;
    align-items: center; 
    gap: 10px; 
}

.icon-circle {
    background-color: #ffc107; 
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon {
    font-size: 16px; 
    color: #333; 
}

.title-text {
    margin: 0; 
    font-weight: bold;
}

.rounded-input .input-group-text {
    border-top-left-radius: 15px;
    border-bottom-left-radius: 15px;
}

.rounded-input .form-control {
    border-top-right-radius: 15px;
    border-bottom-right-radius: 15px;
    border: 1px solid #ddd; 
    box-shadow: none;
}


.rounded-input .form-control:focus {
    border-color: #8baaff;
    box-shadow: 0 0 5px rgba(143, 143, 143, 0.5); 
}

.input-group-text {
    color: #333;
    border: 1px solid #ddd;
    background-color: #fff;
    font-size: 1.2rem; 
}

.form-control {
    border-radius: 15px; 
}

hr.styled-hr {
    border: none; 
    height: 2px; 
    background: linear-gradient(135deg,  #0b8793, #4e13d6 );
    margin-top: 20px; 
    margin-bottom: 20px; 
    width: 50%; 
    margin-left: auto; 
    margin-right: auto; 
    border-radius: 5px; 
}

.custom-gradient-button {
    background: linear-gradient(45deg, #4CAF50, #2196F3); 
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.custom-gradient-button i {
    margin-right: 8px; 
}

.custom-gradient-button:hover {
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.custom-gradient-button .large-icon {
    font-size: 1.5rem; 
    margin-right: 8px;
}



/* ข้อสอบ */
.list-group-item {
    width: 80%; 
    max-width: 800px; 
    margin: 10px auto; 
    border-radius: 15px; 
    text-align: center;
    font-weight: bold;
    color: #002D62;
    padding: 15px;
    background-color: #f0f0f0;
    transition: all 0.3s ease;
    /* box-shadow: 0px 4px 8px 4px rgba(0, 0, 0, 0.1);  */
    overflow: hidden; 
    box-sizing: border-box;
}

.list-group-item:hover,
.list-group-item:focus {
    background: linear-gradient(135deg, #0b8793, #4e13d6);
    border-color: #002D62;
    color: #ffffff; 
}

.list-group-item.active {
    background: linear-gradient(135deg, #79d6df, #b899ff); 
    color: #ffffff; 
    border-color: #002D62;
}

.d-flex.gap-2 {
    gap: 20px; 
}

.nav-button {
    border: 1px solid #002D62;
    border-radius: 50px;
    color: #002D62;
    font-weight: bold;
    padding: 8px 20px;
    background-color: #ffffff;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    font-size: 16px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.nav-button i {
    margin-right: 5px;
}

.nav-button:hover {
    background: linear-gradient(135deg, #0b8793, #4e13d6);
    color: #ffffff;
    border-color: #ffffff;
    box-shadow: 0px 6px 8px rgba(0, 0, 0, 0.15);
}

.video-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px auto;
    max-width: 800px; 
    width: 100%;
}

video {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

/* .alert-custom {
    background-color: #ffaab1; 
    color: #f44e50;
    border-radius: 12px; 
    padding: 10px 20px; 
    text-align: center;
    position: relative;
}

.alert-custom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 6px; 
    background-color: #f44e50; 
    border-top-left-radius: 12px; 
    border-bottom-left-radius: 12px; 
} */

.table-custom {
    width: 100%;
    border-collapse: collapse; 
    
}

.table-custom th, .table-custom td {
    border: none; 
    padding: 8px 12px; 
    text-align: left; 
}

.table-custom th {
    font-weight: bold; 
}

