* { box-sizing: border-box; }


/* ===== Body ===== */
body, html { margin: 0; }


/* ===== Backgeound ===== */
.bg1 {
    background-color: #888;
    /* background-image: url("https://photos.swu.ac.th/storage/cache/photo/photo-1032-large.jpeg"); */
    background-image: url('/background01.jpeg');
    height: 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}
.bg2 {
    background-color: #e8e8e8;
}
.bg3 {
    background: 
        radial-gradient(circle at top left,transparent 25%,#2d2d2f 25.5%, #2d2d2f 36%, transparent 37%, transparent 100%),
        radial-gradient(circle at bottom right,transparent 34%,#2d2d2f 34.5%, #2d2d2f 45.5%, transparent 46%, transparent 100%);
    background-size: 5em 5em;
    background-color: #050505;
}
.bgGray1 { background-color: #636466; }
.bgRed1 { background-color: #C83732; }


/* ===== Logo ===== */
.logo1 {
    height: 80px;
    margin-top: 5px;
    margin-bottom: 5px;
}
.logo2 {
    height: 36px;
    margin-top: 7px;
    margin-bottom: 7px;
}

/* ========== Header/Navigation ========== */
.nav_mem {
    background-color: #B13634;
    z-index: 500;
    position: fixed;
    width: 100%;
    transition: .5s all;
    user-select: none;
    -webkit-user-select: none; /* Safari */
    -webkit-touch-callout: none; /* iOS Safari */
}
.nav_mem a:hover, #menubox a:hover {
    color: white;
    cursor: pointer;
    text-decoration: none;
}
#menubox {
    transform-origin: 0 0;
    transform: scaleY(1);
    position: relative;
    display: inline-block;
    min-height: auto;
    height: 100%;
}
#menubox a {
    color: #DDBEBE;
    cursor: pointer;
    text-decoration: none;
    margin-right: 30px;
    display: inline-block;
    transform: translateY(35%);
}
#menubox a.thispage {
    color: white;
    font-weight: 600;
}
.memMenu {
    position: relative;
    display: inline-block;
    color: #DDBEBE;
    /* ========== */
    background-color: #9d1816;
    font-size: 22px;
    width: 32px;
    height: 32px;
    text-align: center;
    border-radius: 50%;
    transform: translateY(35%);
    /* ========== */
    /* transform: translateY(50%); */
    margin-right: 8px;
}
.moremenu {
    width: 250px;
    display: block;
    position: absolute;
    z-index: 500;
    right: 12px;
    top: 80%;
    text-align: left;
    padding: 4px 8px;
    border-radius: 4px;
    background: black;
    transform: scaleY(0);
    transform-origin: top;
    transition: .5s;
}
.moremenu.show { transform: scaleY(1); }
.moremenu small {
    color: #777;
    display: block;
}
.moremenu span {
    color: white;
    padding-left: 12px;
    display: inline-block;
}
.moremenu a {
    text-decoration: none;
    color: white;
    opacity: 0.6;
    text-align: left;
    display: block;
    border-top: 1px solid #aaa;
    border-bottom: 1px solid #aaa;
    padding: 6px 10px;
    transition: opacity .5s ,background-color .5s;
}
.moremenu a i {
    display: inline-block;
    width: 16px;
    text-align: center;
    margin-right: 8px;
}
.moremenu a:hover {
    color: white;
    text-decoration: none;
    opacity: 1;
    background: #202020;
}
#barssm {
    color: white;
    margin-right: 16px;
    display: none;
    width: 28px;
    text-align: center;
}


/* ===== box ===== */
.box_white1 {
    background-color: white;
    width: 98%;
    display: inline-block;
    padding: 14px;
    border-radius: 20px;
    text-align: left;
}
.box_white2 {
    background-color: white;
    padding: 14px;
    border-radius: 16px;
}
.box_contact {
    width: 90%;
    max-width: 1030px;
    padding: 12px;
    border-radius: 8px;
    display: inline-block;
}
.boxDborder {
    max-width: 850px;
    margin: auto;
    background-color: #fff;
    padding: 8px 14px;
    border-radius: 18px;
    border: 3px double #C83732;
}


/* ========== Input - Select ========== */
input, textarea, select {
    background: white;
    border: 1px solid #999;
    padding: 4px 6px;
    border-radius: 4px;
}
input::placeholder { color: #ccc; }
input:read-only, spanRead {
    color: #666;
    background: white;
    border: 1px solid #bbb;
    padding: 4px 6px;
    border-radius: 4px;
}

/* ========== Custom Radio & Checkbox Buttom ========== */
.boxradio {  /* container for Radio Button */
    display: inline-block;
    position: relative;
    padding-left: 35px;
    margin: 4px;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
.boxradio input {  /* hide default radio button */
    position: absolute;
    opacity: 0;
    cursor: pointer;
}
.checkradio {  /* custom radio */
    position: absolute;
    top: 2px;
    left: 4px;
    height: 18px;
    width: 18px;
    border-radius: 50%;
    border: solid 1px #b6b6b6;
    background-color: white;
}
.boxradio:hover input ~ .checkradio {  /* mouse-over, add a grey background color */
    background-color: #ddd;
}
.boxradio input:checked ~ .checkradio {  /* when radio is checked, add a blue background */
    background-color: #2196F3;
}
.checkcheck {  /* custom checkbox */
    position: absolute;
    top: 2px;
    left: 4px;
    height: 18px;
    width: 18px;
    border-radius: 2px;
    border: solid 1px #b6b6b6;
    background-color: white;
}
.boxradio:hover input ~ .checkcheck {  /* mouse-over, add a grey background color */
    background-color: #ddd;
}
.boxradio input:checked ~ .checkcheck {  /* when check is checked, add a blue background */
    background-color: #2196F3;
}
.checkradio:after, .checkcheck:after {  /* create the indicator (dot/circle - hidden when not checked) */
    content: "";
    position: absolute;
    display: none;
}
.boxradio input:checked ~ .checkradio:after,
.boxradio input:checked ~ .checkcheck:after {  /* show the indicator (dot/circle) when checked */
    display: block;
}
.boxradio .checkradio:after {  /* Style the indicator (dot/circle) */
    top: 5px;
    left: 5px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: white;
}
.boxradio .checkcheck:after {  /* Style the checkmark/indicator */
    left: 5px;
    top: 1px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 3px 3px 0;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
}
/* ========= Switch ========= */
.inpSwitch {
    display: none;
}
.inpSwitch + label {
    display: inline-block;
    position: relative;
    width: 130px;
    height: 66px;
    background: -webkit-linear-gradient(left, red 0, darkred 45%, darkgreen 55%, green 100%) 0 0;
    background: linear-gradient(to right, red 0, darkred 45%, darkgreen 55%, green 100%) 0 0;
    background-size: 280px 100%;
    border-radius: 70px;
    padding: 6px;
    cursor: pointer;
    -webkit-transition: all 500ms ease;
    transition: all 500ms ease;
    box-shadow: 0 0px 10px rgba(0, 0, 0, 0.2) inset;
}
.inpSwitch + label:before {
    content: "ปิด";
    width: 60px;
    height: 60px;
    line-height: 60px;
    position: absolute;
    left: 3px;
    top: 3px;
    border-radius: 100%;
    background: #fff;
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    color: #ff0c08;
    -webkit-transition: left 500ms ease, color 500ms ease, -webkit-transform 150ms ease;
    transition: left 500ms ease, color 500ms ease, -webkit-transform 150ms ease;
    transition: left 500ms ease, color 500ms ease, transform 150ms ease;
    transition: left 500ms ease, color 500ms ease, transform 150ms ease, -webkit-transform 150ms ease;
}
.inpSwitch + label:active:before {
  -webkit-transform: scale(0.95);
          transform: scale(0.95);
}
.inpSwitch:checked + label {
    background-position-x: -145px;
}
.inpSwitch:checked + label:before {
    content: "เปิด";
    color: #057d05;
    left: 67px;
}

/* ===== phone number ===== */
.tel1 {
    width: 26px;
    text-align: center;
}


/* ===== Button ===== */
[class*="btn_"] {
    outline: none;
    display: inline-block;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    padding: 6px 16px;
}
[class*="btn_"]:hover { text-decoration: none; }
.btn_Red1 {
    border: none;
    background-color: #C83732;
    color: white;
}
.btn_Red1:hover { background-color: #B13634; color: white; }
.btn_Gray1 {
    border: none;
    background-color: #636466;
    color: white;
}
.btn_Gray1:hover { background-color: #4d4d4d; color: white; }
.btn_Gray2 {
    border: none;
    background-color: #848586;
    color: white;
}
.btn_Gray2:hover { background-color: #4f4f4f; color: white; }
.btn_White, input.btn_White {
    border: 1px solid #2e3f5f;
    background-color: #fefefe;
    color: #2e3f5f;
}
.btn_White:hover { background-color: #2e3f5f; color: #e4e7e9; }


/* ========== Filter ========== */
#addFilter, #cleerFilter {
    border-radius: 4px;
    display: inline-block;
}
#addFilter {
    background-color: white;
    color: #848586;
    border: 1px solid #848586;
}
#addFilter:hover { background-color: #c9c9ca; }
#cleerFilter {
    background-color: #848586;
    color: white;
    border: 1px solid #eee;
    text-decoration: none;
    padding: 3px 6px;
}
#cleerFilter:hover { background-color: #c9c9ca; }
#moreFilter {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 5px 8px;
    display: block;
    /* display: none; */
}
.checkboxDropdown {
    border: 1px solid #949596;
    border-radius: 4px;
    color: #848586;
    padding: 1px 6px;
    position: relative;
    display: inline-block;
    cursor: pointer;
}
.checkboxDropdown .fa-caret-up {
    display: none;
}
.cdActive .fa-caret-up {
    display: inline;
}
.cdActive .fa-caret-down {
    display: none;
}
.cdActive .checkdropList {
    opacity: 1;
    pointer-events: auto;
}
.checkdropList {
    list-style: none;
    margin: 0;
    padding: 0;
    position: absolute;
    z-index: 5;
    top: 100%; /* align the dropdown right below the dropdown text */
    left: -1px; /* align the dropdown to the left */
    border: inherit;
    background-color: #e5e5e5;
    display: inline-block;
    max-height: 200px;
    transition: opacity 0.3s ease-in-out;
    overflow: auto;
    pointer-events: none; /* avoid mouse click events inside the dropdown */
    opacity: 0;
}
.checkdropList li label {
    display: block;
    border-bottom: 1px solid #ccc;
    margin: 0;
    padding: 2px 4px;
    transition: all 0.1s ease-out;
}
.checkdropList li label input[type="checkbox"], .checkdropList li label input[type="radio"] {
    margin-right: 4px;
}
.checkdropList li label:hover {
    background-color: #bfbfbf;
}
#btnFilter {
    background-color: #a0a0a0;
    color: white;
    border: 1px solid #eee;
    border-radius: 4px;
}



/* ========== Align Text ========== */
.txtCenter { text-align: center; }
.txtRight { text-align: right; }
.txtLeft { text-align: left; }

/* ========== HR ========== */
.hrGrayCenter {
    width: 150px;
    max-width: 80%;
    border: 1px solid gray;
}
.hrGrayLeft {
    width: 120px;
    margin-left: 0;
    margin-top: 5px;
    border: 1px solid #636466;
}


/* ========== Border Radius ========== */
.bord10, input.bord10 { border-radius: 10px; }
.bord100 { border-radius: 50%; }


/* ========== Display / Margin ========== */
.block100p {
    width: 100%;
    display: block;
}
.inblock { display: inline-block; }
.mart8 { margin-top: 8px; }
.mart15 { margin-top: 15px; }
.mart30 { margin-top: 30px; }
.mart80 { margin-top: 80px; }
.marb4 { margin-bottom: 4px; }
.marb8 { margin-bottom: 8px; }
.marb12 { margin-bottom: 12px; }
.marb15 { margin-bottom: 15px; }
.marb20 { margin-bottom: 20px; }
.marb30 { margin-bottom: 30px; }
.marb50 { margin-bottom: 50px; }
.marb60 { margin-bottom: 60px; }


/* ========== Scroll ========== */
.scrollW_lg {
    width: 100%;
    overflow-x: auto;
}


/* ==================== Table ==================== */
/* ========== Data Table ========== */
.div_datatb .page-item.active .page-link {
    background-color: #666;
    border: 1px solid lightgray;
}
.div_datatb .page-link {color: black;}
/* ========== Style Table ========== */
.tb_red1, .tb_gray {
    width: 100%;
    min-width: 750px;
    border-collapse: collapse;
}
.tb_red1 td, .tb_red1 th {
    border: 1px solid #ddd;
}
.tb_red1 th { padding: 4px; }
.tb_red1 td { padding: 1px 4px; }
.tb_gray td, .tb_gray th {
    border: 1px solid #444;
    padding: 1px 4px;
}
.tb_red1 thead tr {
    background-color: #C83732;
    color: white;
}
.tb_gray thead tr {
    background-color: #bbb;
}
.tb_red1 tr:nth-child(even) {
    background-color: #f2f2f2;
}
.tb_red1 tbody tr:hover {
    background-color: #cfcfcf;
}


/* ========== Tooltip ========== */
.tiptool {
    position: relative;
    display: inline-block;
}
.tiptool .tiptooltext {
    visibility: hidden;
    width: 70px;
    background-color: black;
    color: #fff;
    font-size: 10px;
    text-align: center;
    border-radius: 4px;
    padding: 3px 0;
    position: absolute;
    z-index: 1;
    right: 22px;
    top: -5px;
}
.tiptool .tiptooltext::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 99%;
    margin-top: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent transparent black;
}
.tiptool:hover .tiptooltext { visibility: visible; }



/* ========== Modal ========== */
.modalBG {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
    padding: 50px auto;
}
.modalContent {
    background-color: white;
    border-radius: 8px;
    margin: auto;
    margin-top: 40px;
    margin-bottom: 40px;
    padding: 20px;
    width: 70%;
    position: relative;
}
.modalLoad {
    background-color: transparent;
    color: white;
    text-align: center;
    margin: auto;
    margin-top: 60px;
    margin-bottom: 50px;
    padding: 20px;
    width: 100%;
    position: relative;
}
.circleLoad {
    display: inline-block;
    border: 6px solid #777;
    border-radius: 50%;
    border-top: 6px solid #f0f0f0;
    width: 40px;
    height: 40px;
    -webkit-animation: spin 2s linear infinite;
    animation: spin 2s linear infinite;
}
@-webkit-keyframes spin {
    0% { -webkit-transform: rotate(0deg); }
    100% { -webkit-transform: rotate(360deg); }
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.modalClose {
    color: #aaaaaa;
    float: right;
    margin-top: -26px;
    margin-right: -8px;
    font-size: 30px;
    font-weight: bold;
}
.modalClose:hover, .modalClose:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}
.modalBG [class*="btn_"] { min-width: 110px; }





/* =================== Resize =================== */
@media screen and (max-width: 991px) {
    /* ========== Modal ========== */
    .modalContent {
        padding: 16px;
        width: 85%;
    }
}
@media screen and (max-width: 780px) {
    /* ========== Modal ========== */
    .modalContent { width: 88%; }
}
@media screen and (max-width: 750px) {
    /* ========== Header ========== */
    #menubox {
        /* transform: translateY(0%); */
        transform: scaleY(0);
        min-height: 100vh;
        width: 100%;
        position: fixed;
        z-index: 499;
        top: 2.7em;
        left: 0;
        background-color: #B13634;
        transition: 0.5s;
        text-align: left;
    }
    #menubox a:first-child {
        margin-top: 26px;
    }
    #menubox a {
        margin: 0;
        padding: 7px 18px;
        display: block;
        transform: translateY(0%);
    }
    #menubox a i {
        display: inline-block;
        width: 20px;
    }
    #barssm { display: inline-block; }
    .memMenu { margin-right: 16px; }
    .moremenu { right: 30px; }

    /* ========== CheckboxDropdown ========== */
    .moreFilter {
        width: 100%;
    }
    .checkboxDropdown {
        width: 100%;
    }
    .checkboxDropdown .fas {
        float: right;
        margin-top: 6px;
    }
    .checkdropList {
        left: -2px;
        right: -2px;
        width: 100% !important;
        max-height: 200px;
    }
    #btnFilter {
        display: block;
        margin-top: 6px;
        width: 100%;
    }
}
@media screen and (max-width: 600px) {
    /* ========== Modal ========== */
    .modalContent {
        padding: 16px 12px;
        width: 96%;
    }

    /* ========== Box ========== */
    .box_white2 {
        padding: 14px 10px;
        border-radius: 14px;
    }


    /* ========= Other ========= */
    .nextlineS { display: block; }
}
@media screen and (max-width: 400px) {
    /* ========== Box ========== */
    .box_white2 {
        padding: 14px 4px;
    }
}
@media screen and (max-width: 380px) {
    /* ===== Logo ===== */
    .logo1 {
        height: 60px;
    }

    /* ===== phone ===== */
    .tel1 {
        width: 18px;
        padding: 2px 1px !important;
    }
}