﻿
/*=============================================================
    Authour URI: www.binarytheme.com
    License: Commons Attribution 3.0

    http://creativecommons.org/licenses/by/3.0/

    100% Free To use For Personal And Commercial Use.
    IN EXCHANGE JUST GIVE US CREDITS AND TELL YOUR FRIENDS ABOUT US
   
    ========================================================  */

/* =============================================================
   GENERAL STYLES
 ============================================================ */

body {
    /*font-family: 'Bai Jamjuree', tahoma, sans-serif;*/
    font-family: 'Sarabun', sans-serif;
    /*background-color: #f4f7f6;*/
    font-size:20px;
}

h1,h2,h3,h4 {
    font-family: 'Sarabun', sans-serif;
}
.just-txt-div {
    padding-bottom:30px;
    padding-top:30px;
}
    .just-txt-div p {
        padding-top:10px;
    }
.head-line {
    font-weight:500;
    text-align:center;
    text-transform:uppercase;
    font-size:30px;
    font-family: 'Lobster', cursive;
}
.pad-set {
    padding-top:50px;
     padding-bottom:50px;
}
.pad-top {
     padding-top:50px;
}
/* =============================================================
   NAVBAR & MENU STYLES
 ============================================================ */

.text-right {
  font-size: 0.65em;
  color: #fff;
}
.right-div {
    float: right; 
    padding: 20px;
    font-size:20px;
}
#menu-top a {
    color:#000;
    text-decoration:none;
    font-weight:500;
    /*padding: 25px 15px 25px 15px;*/
    font-size:16px;

}
.menu-section {
    background-color: #f7f7f7;
    border-bottom:5px solid #CECECE;
    width:100%
}
.menu-top-active {
    background-color:#eeeeee;
}
.navbar-default {
  background-color: rgb(26, 69, 138);
/*border-color: rgba(155, 153, 153, 0.23);*/
border-bottom: solid 5px #FFCD00;
}
.nav a{
    /*color: white !important;*/
    font-size: 15px !important;
}
.dropdown-menu a{
    /*color: white !important;*/
    font-size: 13px !important;
	/*height: 0px;*/
	/*line-height: 10px;*/
	/*padding-top: 0px;*/
	/*position: absolute;*/
	/*padding: 5px 5px 5px 5px;*/
}
@media (max-width: 767px) {

.navbar-brand .img-responsive {
  max-width: 70%;
}
.right-div .img-responsive {
  max-width: 80%;
}

}
.navbar {
    min-height: 70px;
    margin-bottom: 0px;
   
}
.navbar-inverse .navbar-collapse, .navbar-inverse .navbar-form {
    border-color:transparent;
}
.navbar-toggle {
background-color: #ddd;
border: 1px solid black;
}


/* =============================================================
   SLIDESHOW / CAROUSEL STYLES
 ============================================================ */

#carousel-div {
    border:3px solid #e1e1e1;
}
.carousel-caption {
    top:50px;
}
    .carousel-caption h1 {
        text-align:center;
        font-size:30px;
        font-weight:900;
        text-transform:uppercase;
        background-color:rgba(0, 0, 0, 0.65);
        max-width:440px;
        padding:15px 25px;
        


    }
     .carousel-caption h2 {
        text-align:center;
        font-size:25px;
        font-weight:900;
        text-transform:uppercase;
        background-color:rgba(0, 0, 0, 0.65);
        max-width:340px;
        padding:15px 25px;
        


    }
 /* =============================================================
    PAGE STYLES
 ============================================================ */
.below-slideshow {
    color:#000;
    background:#D8F7F4;
    padding-bottom:50px;
    
}
    .below-slideshow i {
        padding-bottom:15px;
    }
    .below-slideshow .txt-block {
        
        padding-top:20px;
    }
     .below-slideshow h4 {
        font-weight:800;
        font-size:20px;
    }
    .below-slideshow p {
        padding-right:30px;
    }
.py-content {
    padding-top:20px;
	font-size:16px;    
}
	.py-content h4 {
        font-weight:800;
        font-size:20px;
    }
	.py-content li {
        line-height:30px;
    }
	.py-content a:hover {
        color:orange;
    }
.py2-content {
    padding-top:20px;
    font-size:12px;    
}
    .py2-content h4 {
        font-weight:800;
        font-size:14px;
    }
.tag-home {
    padding-top:50px;
    padding-bottom:30px;
    font-size:30px;
    text-align:center;
    line-height:45px
}

.parallax-like {
margin-top: 20px;
margin-bottom: 20px;
background: url(../img/par.jpg) no-repeat center center;
padding: 0;
-webkit-background-size: cover;
background-size: cover;
color: #fff;
background-attachment: fixed;
}
    .parallax-like .overlay {
        min-height:200px;
        background: rgba(15, 15, 15, 0.66);
        font-size:50px;
        
        
    }
    .vedio-style {
border: 0px;
width: 100%;
min-height: 300px;
}
.just-sec {
    padding-top:50px;
    padding-bottom:70px;
}
.set-div {
    border:1px solid #01a2a6;
    border-radius:10px;
    -webkit-border-radius:10px;
    -moz-border-radius:10px;
}
.footer-sec {
    margin-top:50px;
    padding-top:30px;
    color:#fff;
    background:#434343;
    padding-bottom:20px;
    font-size: 0.5em;
}
.flexslider {
    -webkit-box-shadow: 0 0px 0px rgba(0,0,0,0);
     -moz-box-shadow: 0 0px 0px rgba(0,0,0,0);
    -o-box-shadow: 0 0px 0px rgba(0,0,0,0);
    box-shadow: 0 0px 0px rgba(0,0,0,0);
}
.social-div a,a:hover{
    color:#fff;
    text-decoration:none;
}
.set-about-img {
    border:10px double #01a2a6;
     max-height:200px;
}
/*==========================================
   GALLERY/ PORTFOLIO STYLES
    =====================================================*/

#port-folio {
    padding-top: 80px; 
    padding-bottom: 100px; 
}
.portfolio-item {
    border:15px double #01a2a6;
    margin:3px;
}
    .portfolio-item p {
        padding:30px;
        color:#fff;
    }

.portfolio-item .overlay {
   position: absolute;
  top: 0;
  left: 0;
    width: 100%;
  height: 100%;
  opacity: 0;
  background-color: #CECECE;
  text-align: center;
  vertical-align: middle;
  -webkit-transition: opacity 300ms;
  -moz-transition: opacity 300ms;
  -o-transition: opacity 300ms;
  transition: opacity 300ms;
  cursor:pointer;
  border-radius: 5px;
  -moz-border-radius:5px;
  -webkit-border-radius:5px;
 
}
.portfolio-item .overlay .preview {
  position: relative;
  top: 50%;
  display: inline-block;
  margin-top: -20px;
}
.portfolio-item:hover .overlay {
  opacity: 1;
  zoom: 1;
	filter: alpha(opacity=100);
}
.overlay a,overlay a:hover{
    color:#fff;
    text-decoration:none;
}
#port-folio .overlay p > span {
    display:block;
    padding-bottom:20px;
}

/*==========================================
   GALLERY/ PORTFOLIO FILTER STYLES
    =====================================================*/
ul#filters {
	padding: 0px;
}
#filters {
	margin: 3% 0;
	padding: 0;
	list-style: none;
	text-align: center;
}
	#filters li {
		display: -webkit-inline-box;
	}
	#filters li span {
		display: block;
		padding: 5px 4px;
		text-decoration: none;
		color: #d51111;
		cursor: pointer;
		font-size: 18px;
	}
 	#port-folio .portfolio-item {
		-webkit-box-sizing: border-box;
		-moz-box-sizing: border-box;
		-o-box-sizing: border-box;
		width: 100%;		
        opacity:.2;
		float:left;
		overflow:hidden;
	}
	

/* =============================================================
  MEDIA QUERIES 
 ============================================================ */


@media (min-width: 740px) and (max-width: 1040px) {
    .carousel-caption h2 {
        display: none;
    }
}

@media (min-width: 100px) and (max-width: 740px) {
    .carousel-caption h1 {
        display: none;
    }

    .carousel-caption h2 {
        display: none;
    }
}

    /* แก้ไขระยะห่างแนวตั้งสำหรับ Bootstrap 3 */
    @media (max-width: 767px) {
        .form-group-mobile, .m-b-mobile {
            margin-bottom: 15px !important;
        }
        /* ปรับให้ Radio อยู่คนละบรรทัดบนมือถือเพื่อความง่ายในการจิ้ม */
        .radio-inline {
            display: block;
            margin-left: 0 !important;
            margin-bottom: 10px;
        }
        #btnSubmit, .btn-success, .btn-default {
            display: block;
            width: 100%;
            margin-bottom: 10px;
        }
        /* จัดกลาง reCAPTCHA บนมือถือ */
        .g-recaptcha {
            transform: scale(0.85);
            -webkit-transform: scale(0.85);
            transform-origin: 0 0;
            -webkit-transform-origin: 0 0;
        }
    }
    /* เพิ่มระยะห่างระหว่างแถวปกติ */
    .form-group {
        margin-bottom: 20px;
    }

    /* เพิ่มระยะห่างระหว่างรายการ (ปรับเลขได้ตามชอบ) */
    .custom-check-list .checkbox {
        margin-bottom: 15px; 
    }
    /* ปรับแต่งให้ Checkbox กับ Text ดูห่างกันนิดนึง */
    .custom-check-list input[type="checkbox"] {
        margin-top: 2px;
    }
    /* 1. ปรับสีหัวข้อส่วนต่างๆ (ส่วนที่ 1, 2, 3) ให้เป็นสีน้ำเงินเข้มมหิดล */
    h4 {
        color: #003366; /* สีน้ำเงินเข้ม */
        font-weight: bold;
        border-bottom: 2px solid #ffcc00; /* เส้นใต้สีเหลืองทอง */
        padding-bottom: 10px;
        margin-top: 30px;
    }
    /* 2. ปรับสี Label (ชื่อหัวข้อแต่ละช่อง) ให้เด่นชัด */
    .control-label {
        color: #333333; /* สีเทาเข้มเกือบดำ */
        font-weight: 600;
    }
    /* 3. ปรับสีข้อความแจ้งเตือนสีแดง (เช่น * หากแพ้อาหาร) ให้ดูซอฟต์ลงแต่ยังเด่น */
    .text-danger {
        color: #d9534f !important; /* สีแดงเข้มแบบ Alert */
    }
    /* 4. ปรับสีข้อความช่วยเหลือ (Help Block) และวันที่ในวงเล็บ */
    .help-block, .text-muted {
        color: #666666 !important; /* สีเทากลาง */
    }

    /* 5. ปรับสีข้อความในช่อง Input ขณะพิมพ์ */
    .form-control {
        color: #444444;
    }

    /* 6. ปรับสีลิงก์นโยบายความเป็นส่วนตัว */
    a {
        color: #0056b3;
        text-decoration: none;
    }
    a:hover {
        color: #003366;
        text-decoration: underline;
    }

    /* 7. สีข้อความ Error ในส่วน JavaScript ที่คุณเขียนไว้ */
    #message {
        margin-top: 5px;
        display: block;
    }

    /* ใช้ฟอนต์ Sarabun ที่เราติดตั้งไว้ */
    .camp-title {
        font-family: 'Sarabun', sans-serif;
        color: #003366; /* สีน้ำเงินมหิดล */
        font-weight: 700;
        font-size: 48px; /* ขนาดใหญ่พิเศษสำหรับชื่อโครงการ */
        margin-top: 20px;
        margin-bottom: 15px;
        text-shadow: 1px 1px 2px rgba(0,0,0,0.05);
    }

    .camp-subtitle {
        font-family: 'Sarabun', sans-serif;
        display: inline-block;
        background-color: #003366;
        color: #ffcc00; /* สีเหลืองทองมหิดล */
        padding: 10px 35px;
        border-radius: 50px;
        font-size: 22px;
        font-weight: 400;
        box-shadow: 0 4px 15px rgba(0, 51, 102, 0.2);
        letter-spacing: 0.5px;
        margin-bottom: 30px;
    }

    /* ตกแต่งเพิ่มเติมสำหรับปุ่มกดในหน้าแรก */
    .btn-flexible {
        background-color: #ffcc00; /* สีเหลืองทอง */
        color: #003366;           /* สีน้ำเงินมหิดล */
        font-family: 'Sarabun', sans-serif;
        font-weight: bold;
        font-size: 24px;
        padding: 15px 60px;
        border-radius: 50px;      /* ขอบมนแบบแคปซูล */
        border: 2px solid #003366;
        transition: all 0.3s cubic-bezier(.25,.8,.25,1); /* เคลื่อนไหวนุ่มนวล */
        white-space: normal;      /* ยืดหยุ่นให้ขึ้นบรรทัดใหม่ได้ถ้าจอมือถือแคบมาก */
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        display: inline-block;
        max-width: 100%;          /* ไม่ให้ล้นจอ */
    }

    /* เมื่อเอาเมาส์ไปวาง (Hover) */
    .btn-flexible:hover {
        background-color: #003366;
        color: #ffcc00;
        transform: translateY(-5px); /* ปุ่มลอยขึ้น */
        box-shadow: 0 10px 20px rgba(0,0,0,0.2);
        text-decoration: none;
    }

    /* เมื่อกดปุ่ม (Active) */
    .btn-flexible:active {
        transform: translateY(-2px);
        box-shadow: 0 5px 10px rgba(0,0,0,0.2);
    }

    /* ปรับแต่งสำหรับหน้าจอมือถือ (ยืดเต็มจออัตโนมัติ) */
    @media (max-width: 767px) {
        .btn-flexible {
            width: 100%;          /* ยืดเต็มความกว้างจอ */
            font-size: 20px;      /* ลดขนาดฟอนต์ลงเล็กน้อย */
            padding: 15px 20px;
        }
    }

    .banner-wrapper {
        margin-bottom: 40px;
        border-radius: 15px;
        margin-top: 20px;
        overflow: hidden;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    }

    /* ตกแต่งเนื้อหาให้น่าอ่านขึ้น */
    .section-header {
        color: #003366;
        border-left: 5px solid #ffcc00;
        padding-left: 15px;
        margin-top: 40px;
        font-weight: bold;
    }

    @media (max-width: 767px) {
        .camp-title { font-size: 32px; }
        .camp-subtitle { font-size: 18px; padding: 8px 20px; }
    }
    /* สไตล์ปุ่มดาวน์โหลดส่วนกลาง */
    .btn-download {
        font-family: 'Sarabun', sans-serif;
        font-weight: bold;
        padding: 10px 25px;
        margin: 5px;
        border-radius: 8px;
        transition: all 0.3s ease;
        border: none;
        display: inline-block;
    }

    /* สไตล์เฉพาะปุ่ม PNG (สีฟ้า/เขียว) */
    .btn-png {
        background-color: #5bc0de;
        color: white;
    }
    .btn-png:hover {
        background-color: #31b0d5;
        color: white;
        transform: translateY(-2px);
    }

    /* สไตล์เฉพาะปุ่ม PDF (สีแดง/ส้ม ตามสัญลักษณ์ PDF) */
    .btn-pdf {
        background-color: #d9534f;
        color: white;
    }
    .btn-pdf:hover {
        background-color: #c9302c;
        color: white;
        transform: translateY(-2px);
    }

    /* ปรับให้ยืดหยุ่นบนมือถือ (ปุ่มจะขยายเต็มความกว้างและเรียงต่อกัน) */
    @media (max-width: 767px) {
        .btn-download {
            display: block;
            width: 100%;
            margin: 10px 0;
            font-size: 18px;
        }
    }

    .registration-link:hover {
        text-decoration: none; /* เอาเส้นใต้ตอนเอาเมาส์วางออก */
    }

    .registration-button {
        background-color: #ffffff;
        border: 3px dashed #ffcc00; /* ขอบเส้นประสีทอง ดูเหมือนคูปอง/จุดรับสมัคร */
        padding: 20px;
        border-radius: 15px;
        display: inline-block;
        transition: all 0.3s ease;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    }

    .registration-button:hover {
        background-color: #fffdf5;
        border-style: solid; /* เปลี่ยนเป็นเส้นทึบตอนวางเมาส์ */
        transform: scale(1.05); /* ขยายใหญ่ขึ้นเล็กน้อย */
        box-shadow: 0 6px 20px rgba(255, 204, 0, 0.3);
    }

    .registration-text {
        display: block;
        font-size: 24px;
        font-weight: 800;
        color: #d9534f; /* สีแดงกระตุ้นการตัดสินใจ */
        margin-bottom: 5px;
        font-family: 'Sarabun', sans-serif;
    }

    /* ปรับแต่งสำหรับมือถือ */
    @media (max-width: 767px) {
        .registration-text { font-size: 18px; }
        .registration-button { width: 90%; padding: 15px; }
    }
    
    /* สไตล์ปุ่มพื้นฐาน - ปรับความสูงและ Padding ให้ใหญ่ขึ้น */
    .odyssey-btn.big-btn {
        display: flex;
        align-items: center;
        padding: 40px 30px; /* เพิ่มพื้นที่ว่างด้านใน */
        border-radius: 20px;
        transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        border: 3px solid transparent;
        min-height: 150px; /* เพิ่มความสูงขั้นต่ำ */
        position: relative;
    }

    /* ปุ่มสมัคร (น้ำเงินเข้ม-ทอง) */
    .primary-btn {
        background: linear-gradient(135deg, #003366 0%, #001f3f 100%);
        color: #ffcc00;
    }
    .primary-btn .btn-sub-text { color: #ffffff; }

    .primary-btn:hover {
        transform: scale(1.03) translateY(-10px);
        box-shadow: 0 20px 35px rgba(0,51,102,0.4);
        border-color: #ffcc00;
        background: linear-gradient(135deg, #004080 0%, #001f3f 100%);
    }

    /* ปุ่มตรวจสอบ (เทา-ขาว) */
    .secondary-btn {
        background-color: #ffffff;
        color: #003366;
        border: 3px solid #003366;
    }
    .secondary-btn:hover {
        transform: scale(1.03) translateY(-10px);
        box-shadow: 0 20px 35px rgba(0,0,0,0.1);
        background-color: #f0f5fa;
    }

    /* ไอคอนและข้อความข้างใน */
    .btn-icon {
        margin-right: 25px;
        flex-shrink: 0;
    }
    .btn-content {
        flex-grow: 1;
        text-align: left;
    }
    .btn-main-text {
        display: block;
        font-size: 26px; /* ขยายขนาดหัวข้อ */
        font-weight: 800;
        line-height: 1.1;
    }
    .btn-sub-text {
        display: block;
        font-size: 16px;
        opacity: 0.9;
        margin-top: 8px;
    }

    /* ลูกศรด้านหลัง */
    .btn-chevron {
        font-size: 24px;
        opacity: 0.5;
        margin-left: 10px;
    }

    /* Responsive สำหรับมือถือ */
    @media (max-width: 767px) {
        .odyssey-btn.big-btn { 
            padding: 25px 20px; 
            min-height: auto; 
        }
        .btn-main-text { font-size: 22px; }
        .btn-sub-text { font-size: 14px; }
        .btn-icon i { font-size: 35px; }
    }


    /* ปรับแต่งกรอบรูปภาพ */
    .mission-img-wrapper {
        cursor: pointer;
        transition: all 0.3s ease;
        position: relative;
        padding: 10px;
    }

    .mission-img-btn {
        width: 100%; /* ขยายรูปให้เต็มคอลัมน์ */
        max-width: 350px; /* คุมขนาดสูงสุดไม่ให้ใหญ่เกินไปในจอคอม */
        margin: 0 auto;
        border-radius: 20px;
        border: 4px solid #eee;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        transition: all 0.3s ease;
    }

    .mission-img-wrapper:hover .mission-img-btn {
        transform: scale(1.05); /* รูปขยายเมื่อเอาเมาส์วาง */
        border-color: #ffcc00;
        box-shadow: 0 15px 30px rgba(255, 204, 0, 0.3);
    }

    .mission-label {
        margin-top: 15px;
        font-weight: bold;
        color: #003366;
        font-size: 14px;
        text-transform: uppercase;
    }

    .mission-name {
        font-weight: 800;
        font-size: 18px;
        color: #333;
    }

    /* กล่องรายละเอียด */
    .mission-detail-panel {
        width: 100%;
        clear: both;
    }

    .detail-box {
        border-radius: 20px;
        padding: 30px !important;
        border: none !important;
        box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
    }

    .box-blue { border-left: 10px solid #003366 !important; background: #fff !important; }
    .box-yellow { border-left: 10px solid #ffcc00 !important; background: #fff !important; }
    .box-green { border-left: 10px solid #28a745 !important; background: #fff !important; }
