﻿
/*=============================================================
    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: 'oswald_regularregular', tahoma, sans-serif;
    font-size:15px;
}

h1,h2,h4 {
    font-family: 'Open Sans', 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;
}
.h-title {
    overflow: hidden;
    text-align: center;
}
    .h-title span {
        position: relative;
        font-size: 20px;
    }
    .h-title span:before, .h-title span:after {
        content: "";
        position: absolute;
        top: 50%;
        margin-top: -.0em;
        height: .1em;
        border-top: 1px solid black;
        border-bottom: 1px solid black;
        width: 200em;
    }
    .h-title span:before {
        right: 100%;
        margin-right: .5em;
    }
    .h-title span:after {
        left: 100%;
        margin-left: .5em;
    }
.text-link a:hover, .text-link a:focus {
    color:goldenrod;
}

/* =============================================================
   NAVBAR & MENU STYLES
 ============================================================ */

.text-right {
  font-size: 0.65em;
  color: #fff;
}
.right-div {
    float: right; 
    padding: 0px;
    font-size:20px;
}
#navbarText a {
    color:#000;
    text-decoration:none;
    font-weight:500;
    /*padding: 25px 15px 25px 15px;*/
    font-size:15px;

}
    #navbarText a:focus {
        color:rgb(94, 94, 94);
    }
    #navbarText a:hover {
        color:rgb(94, 94, 94);
        /*background-color: yellow;*/
    }
.menu-section {
    background-color: #f7f7f7;
    border-bottom:5px solid #CECECE;
    width:100%
}
.topmenu-section {
    background-color: #f7f7f7;
    color:white;
    font-size:13px;
    line-height: 8px;
    /*border-bottom:5px solid #CECECE;*/
    width:100%
}
    .topmenu-section a{
        color:rgb(94, 94, 94);
    }
    .topmenu-section a:hover{
        color:#CECECE;
    }
    .topmenu-section li{
        border-right: 2px solid rgba(112, 112, 112, 0.1);
    }
    .topmenu-section li:last-child{
        border-right: 0;
    }
.navbarText-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: #000 !important;
    font-size: 14px !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
 ============================================================ */
 .congratulations-sec {
    color:#000; 
    padding-top:10px;
    padding-bottom:15px;
    font-size:13px;
}
    .congratulations-sec h4 {
        font-weight:800;
        font-size:18px;
        padding-bottom:5px;
        text-align:left;
    }
    .congratulations-sec h5 {
        font-weight:800;
        font-size:15px;
    }
    .congratulations-sec img {
        padding-top:5px;
        padding-bottom:10px;
    }
.buttons {
    padding-top: 0px;
    /* text-align: center; */
}
.blue {
    color: #263988;
    border: 2px #263988 solid;
    background: #fff;
}
.btn-bn-news {
    cursor: pointer;
    margin: 5px;
    border-radius: 5px;
    text-decoration: none;
    padding: 12px;
    transition: .3s;
    -webkit-transition: .3s;
    -moz-transition: .3s;
    -o-transition: .3s;
    display: inline-block;
    width: 100%;
    text-decoration: none;
}
.below-slideshow {
    color:#000;
    background:#D8F7F4;
    padding-bottom:10px;
    
}
    .below-slideshow i {
        padding-bottom:15px;
    }
    .below-slideshow .txt-block {
        
        padding-top:20px;
    }
     .below-slideshow h4 {
        font-weight:800;
        font-size:18px;
    }
    .below-slideshow p {
        padding-right:30px;
    }
.below-slideshow2 {
    color:#000;
    /*background:#D8F7F4;*/
    padding-bottom:10px;
        
}
    .below-slideshow2 i {
        padding-bottom:15px;
    }
    .below-slideshow2 .txt-block {
            
        padding-top:20px;
    }
    .below-slideshow2 h4 {
        font-weight:800;
        font-size:18px;
    }
    .below-slideshow2 p {
        padding-right:30px;
    }
.quick-link {
    text-align: center;
}
    .quick-link img{
        padding-top: 3px;
        padding-bottom: 3px;
    }
.learnmorebutton {
    font-size:12px;
}
    .learnmorebutton a:link {
        color:white;
    }
    .learnmorebutton a:hover {
        color:orange;
    }
.event-date {
    display: inline-block;
    width: 65px;
    background: #1a458a;
    color: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    text-align: center;
    float: left;
    left: 5px;
    top: 0px;
}
    .event-date > .day {
        display: block;
        font-family: 'Sukhumvit Set', 'Thai Sans Neue semi bold', Sans-serif;
        font-size: 2em;
        line-height: 1em;
        padding-top: 2px;
        padding-bottom: 4px;
    }
    .event-date > .day2 {
        display: block;
        font-family: 'Sukhumvit Set', 'Thai Sans Neue semi bold', Sans-serif;
        font-size: 1em;
        line-height: 1em;
        padding-top: 2px;
        padding-bottom: 4px;
    }
    .event-date > .month {
        display: block;
        font-family: 'Sukhumvit Set', 'Thai Sans Neue semi bold', Sans-serif;
        font-size: 1.5em;
        line-height: 1em;
        padding-bottom: 2px;
    }
    .event-date > .month2 {
        display: block;
        font-family: 'Sukhumvit Set', 'Thai Sans Neue semi bold', Sans-serif;
        font-size: 1em;
        line-height: 1em;
        padding-bottom: 2px;
    }
.event-title {
    display: block;
    /*color: #6f7678;*/
    font-size: 0.90em;
    margin-left: 90px;
}
    .event-title > .detail {
        padding:  0px 5px 1px 5px;
        font-size: 0.80em;
    }
    .event-title p {
        padding:  1px 0px 1px 0px;
        margin:  0px 0px 0px 0px;
    }
    .event-title h4 {
        font-size: 1.20em;
    }
.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;
    }
.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:10px;
    padding-top:30px;
    color:#fff;
    background:#434343;
    padding-bottom:20px;
    font-size: 0.75em;
}
.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;
    }
}

/* =============================================================
   etc
 ============================================================ */
.a-title {
    border-bottom: 1px dashed #aaa;
    border-left: 7px solid #aaa;
    padding-bottom:5px;
}
.y-title {
    border-bottom: 1px solid #aaa;
}
.award p {
    padding:  1px 0px 1px 0px;
    margin:  0px 0px 0px 0px;
}
.people p {
    font-size:14px;
    padding:  1px 0px 1px 0px;
    margin:  0px 0px 0px 0px;
}
.people small {
    font-size:12px;
}
.people_student p {
    font-size:11px;
    padding:  1px 0px 1px 0px;
    margin:  0px 0px 0px 0px;
}
.people_support p {
    font-size:16px;
    padding:  1px 0px 1px 0px;
    margin:  0px 0px 0px 0px;
}
/* กล่อง Dropdown สำหรับ Search */
.search-dropdown-box {
    position: absolute;
    right: 0;
    top: 100%;
    width: 300px;
    background: #ffffff;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 9999;
    
    /* เริ่มต้นซ่อนไว้ด้วยเทคนิคที่ไม่รบกวน Google Script */
    height: 0;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

/* เมื่อสั่งเปิด */
.search-dropdown-box.open {
    height: auto;
    opacity: 1;
    pointer-events: auto;
}

/* ปรับแต่งภายใน Google Search ให้ดูเข้ากับหน้าเว็บ */
.gsc-control-cse {
    padding: 0 !important;
    background-color: transparent !important;
    border: none !important;
}
.gsc-search-button-v2 {
    background-color: #004d99 !important; /* สีน้ำเงินมหิดล */
    border-color: #004d99 !important;
}
input.gsc-input {
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
}

