@font-face {
  font-family: myFirstFont;
  src: url(../fonts/Kanit-Light.ttf);
}
/* ทำให้ทุกส่วนของเว็บไซต์เป็นขาวดำ */


/* เพื่อไม่ให้ตัวอักษรจางเกินไป */
html,body {
background-color: #fff;
    color: #000;
    margin-top: 0 !important;
    padding-top: 0 !important;
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important; /* ป้องกันการเลื่อนแนวนอน 100% */
    position: relative;
}

/* ถ้าต้องการให้บางส่วนยังมีสีอยู่ (ยกเว้นบาง element) */
.keep-color {
  filter: none !important;
  -webkit-filter: none !important;
}


div {
  font-family: myFirstFont;
}

a {
  text-decoration: none !important;
  font-family: myFirstFont;
}
button {
  font-family: myFirstFont;
}
ul {
  font-family: myFirstFont;
}
li {
  font-family: myFirstFont;
}
.header-box{
	/*background: rgb(103,125,52);
	background: linear-gradient(90deg, rgba(103,125,52,1) 0%, rgba(114,175,35,1) 100%);*/
	background-color: #244796;
	 padding:10px;
}
.page-header-box{
	/*background: rgb(103,125,52);
background: linear-gradient(90deg, rgba(103,125,52,1) 0%, rgba(103,125,52,1) 100%);*/
	background-color: #244796;
	 padding:18px;
	color: #FFFFFF;
	font-size: 1em;
}
.page-header-box a{
	color:#fff;
}
.page-header-box a:hover {
	opacity: 0.7;
}
.text-mini{
color:#bdbebc;
font-size:14px;

}
.text-pink{
color:#d45c9e;

}
.text-black{
color:black;

}
.search{
border: 1px solid white;
border-radius: 15px;
height:40px;
}
form.search input[type=text] {
  padding: 0px 10px;
  font-size: 16px;
  color: #fff;
  float: left;
  width: 80%;
  height:40px;
  background-color:transparent;
  border: 0px solid white;
  border-radius: 15px;
}
form.search :focus, input:focus{
    outline: none;
}
form.search button {
  float: left;
  width: 20%;
  padding: 0px 0px;
  background-color:transparent;
  color: white;
  font-size: 16px;
  border-left: none;
  cursor: pointer;
  border: 0px solid white;
}

form.search button:hover {
  color: #CCC;
}
form.search::after {
  content: "";
  clear: both;
  display: table;
}
form.search ::placeholder {
  color: #D8D8D8;
  opacity: 0.7;
}
form.search :-ms-input-placeholder { /* Internet Explorer 10-11 */
 color: #D8D8D8;
 opacity: 0.7;
}
form.search ::-ms-input-placeholder { /* Microsoft Edge */
 color: #D8D8D8;
 opacity: 0.7;
}
.fa {
  font-size: 20px;
  padding:8px;
  width:30px;
  height:30px;
  text-align: center;
  text-decoration: none;
  border-radius: 50%;
  margin:0px 3px;
}

.fa:hover {
    opacity: 0.7;
}

.fa-facebook {
  background: #3B5998;
  color: white;
}
.fa-twitter {
  background: #55ACEE;
  color: white;
}
.fa-youtube {
  background: #bb0000;
  color: white;
}
.fa-envelope {
  background: #55ACEE;
  color: white;
}
.h2-title {
    height: 100%;
	margin: 0px 0px 0px 0px;
	padding: 40px 0px 0px 100px;
	background: url(../images/border.png) 0 0 no-repeat;
	font-size:22px;
	}
.link{
	list-style-type: none;
	font-size:16px;
}

.link-head a{
	font-size: 12px;
	color:#fff;
	padding:0px 8px 0px 0px;
	text-decoration: none;
}
.link-head a:hover {
	opacity: 0.7;
}
.link-th img {
  width:20px;
  height:20px;
  margin:0px 0px;
}
.link-th a{
	padding:0px 0px 0px 0px;
	color:#555555;
}
.link-th a:hover {
	opacity: 0.7;
}
.about{
	/*background-image:url(../images/about.png);
    background-repeat: no-repeat;*/
	background-color: #dbe3ed;
	padding:30px;
}
.about a{
	color:#000000;
} 
.about a:hover {
	color:#d45c9e;
}
.gallary{
	padding:30px;
}
.gallary a{
	color:#000000;
} 
.gallary a:hover {
	color:#d45c9e;
}
.gallary span{
	color:#c4c0c2;
}
.video{
	/*background-image:url(../images/about.png);
    background-repeat: no-repeat;*/
	width: 100%;
	background-color: #2d6806;
	padding:30px;
}
.sweet-alert, 
.sweet-alert h2, 
.sweet-alert p {
    font-family: myFirstFont !important;
}
.alumni{
	/*background-image:url(../images/about.png);
    background-repeat: no-repeat;*/
	width: 100%;
	background-color: #f5f5ef;
	padding:30px;
}
.job{
	/*background-image:url(../images/about.png);
    background-repeat: no-repeat;*/
	background-color: #d9d9d9;
	}
.job1{
	background-image:url(../images/job.png);
    background-repeat: no-repeat;
	padding:30px;
}

.login-wrapper{
    min-height:100vh;
    display:flex;
    justify-content:center;
    align-items:center;
    padding:30px;
}

.login{
	background: rgb(255,240,219);
background: linear-gradient(90deg, rgba(255,240,219,1) 0%, rgba(0,188,191,1) 100%);
	padding:25px;
}
.login-box h1 {
	padding: 10px 0;
	font-size: 2.5rem;
	color: #111;
	text-align: center;
	
}

.login-box input {
	padding: 20px;
	font-size: 16px;
	border-radius: 5px;
	outline: none;
	width: 100%;
	border: solid 1px #ccc;
}

.login-box form i {
	margin-left: -30px;
	cursor: pointer;
}

.login-box button {
    box-sizing: border-box;
    width: 100%;
    padding: 4%;
    background: #007bff;
    border: none;
    color: #fff;
    font-size: 20px;
	border-radius: 5px;
}

.login-box button:hover {
    background: #0069d9;
    cursor: pointer;
}
.submit{
	margin-top:10px;
}
.login-box {
	background-color: #fff;
	border-radius: 5px;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
	max-width: 80%;
	margin: 0px auto;
	padding: 50px 20px 50px 20px;
}
p a{
	color:#677d34;
}
p a:hover {
	opacity: 0.7;
}
.green{
	color:#2cccc4;
}
.pink{
	color:#d45c9e;
}
.btn-green{color:#fff;background: rgb(103,125,52);
background: linear-gradient(90deg, rgba(103,125,52,1) 0%, rgba(167,169,122,1) 100%); border-radius:50px;
font-size:14px;}
.btn-green:hover{color:#fff; background-color:#0FF;}
.btn-green.focus,.btn-green:focus{box-shadow:0 0 0 .2rem rgba(40,167,69,.5)}
.btn-menu{color:#fff;background: rgb(71,138,201);
background: linear-gradient(90deg, rgba(71,138,201,1) 0%, rgba(44,204,196,1) 100%); border-radius:50px; width:100%}
.btn-menu:hover{color:#fff; opacity: 0.7;}
.btn-menu.focus,.btn-menu:focus{box-shadow:0 0 0 .2rem rgba(40,167,69,.5)}

/* 
---------------------------------------------
Features Style
--------------------------------------------- 
*/

#features {
  padding-top: 130px;
}

.features .features-content {
  z-index: 2;
  position: relative;
  background-color: #fff;
  border-radius: 50px;
  box-shadow: 0px 0px 15px rgba(0,0,0,0.1);
}

.features-item {
  text-align: center;
  padding: 30px;
  border-radius: 50px;
  background: rgb(255,255,255);
  background: linear-gradient(105deg, rgba(255,255,255,1) 0%, rgba(255,255,255,1) 100%);
  transition: background-color .5s;
  -webkit-transition: background-color .5s;
  -o-transition: background-color .5s;
  -moz-transition: background-color .5s;
}

.features-item:hover {
background: rgb(169,227,26);
background: linear-gradient(90deg, rgba(169,227,26,1) 0%, rgba(93,180,15,0.692612079011292) 100%);
}

.features-item:hover h4 {
  color: #fff;
}

.features-item:hover p {
  color: #fff;
}

.features-item:hover .line-dec {
  background-color: rgba(255,255,255,0.3);
}

.first-feature:hover .icon {
  background-image: url(../images/phar-icon-white-01.png);
}

.second-feature:hover .icon {
  background-image: url(../images/phar-icon-white-02.png);
}
.third-feature:hover .icon {
  background-image: url(../images/phar-icon-white-03.png);
}
.four-feature:hover .icon {
  background-image: url(../images/phar-icon-white-04.png);
}

.features-item .number h6 {
  background-repeat: no-repeat;
  width: 110px;
  height: 69px;
  color: #fff;
  margin-left: auto;
  margin-right: auto;
  font-size: 30px;
  font-weight: 700;
  text-align: center;
  line-height: 69px;
  margin-top: -65px;
  margin-bottom: 30px;
}

.features-item .first-number h6 {
  background-image: url(../images/features-number-01.png);
}

.features-item .second-number h6 {
  background-image: url(../images/features-number-02.png);
}

.features-item .third-number h6 {
  background-image: url(../images/features-number-03.png);
}

.features-item .fourth-number h6 {
  background-image: url(../images/features-number-04.png);
}

.first-feature .icon {
  background-image: url(../images/phar-icon-black-01.png);
}

.second-feature .icon {
  background-image: url(../images/phar-icon-black-02.png);
}
.third-feature .icon {
  background-image: url(../images/phar-icon-black-03.png);
}
.four-feature .icon {
  background-image: url(../images/phar-icon-black-04.png);
}
.features-item .icon {
  width: 63px;
  height: 63px;
  margin: 0 auto;
  transition: all 0.5s;
}

.features-item h4 {
  margin-left: 15px;
  margin-right: 15px;
  margin-top: 30px;
  font-size: 16px;
  line-height: 30px;
  font-weight: 700;
  color: #2a2a2a;
  position: relative;
  transition: all 0.5s;
}

.features-item .line-dec {
  width: 100px;
  height: 2px;
  background-color: rgba(51,204,197,0.3);
  margin: 30px auto;
  transition: all 0.5s;
}

.features-item p {
  position: relative;
  margin-top: 0px;
  transition: all 0.5s;
}
.text-left {
  text-align: left !important; }

.text-right {
  text-align: right !important; }

.new p {
	color:#1d821a;
}
.new span {
	color:#ff5e00;
	font-size:12px;
}
.news a{
	color:#000;
}
.news a:hover {
	color:#d25b9d;
}
.img {
	width:90%;
	height:auto;
	border:solid 4px #fff;
}
.btn-news {
  color: #fff;
  background: rgb(71,138,201);
  /*background: linear-gradient(90deg, rgba(71,138,201,1) 0%, rgba(44,204,196,1) 100%);*/
  background-color:#2d4294;
  border-radius:10px;
}
.btn-news:hover {
  color: #fff;
opacity: 0.7;
  border-radius:10px;
}
.event{
	background-image:url(../images/deegree11.png);
	width:100%;
    background-repeat: no-repeat;
	padding:55px 0px 0px 110px;
}
.event a{
	color:#677d34;
}
.event a:hover {
	opacity: 0.7;
}
.event-title{
	background-color:#2cccc4;
	border-radius: 10px;
	color:#fff;
	padding:10px;
	width:80%;
}
.event-title-s{
	color:#adf6f2;
}
.event-time-s{
	color:#bdbebc;
	font-size:13px;
}
.event-line{
	width:80%;
	height:1px;
	background-color:#adf6f2;
	z-index: 100;
	
}
.events{
	background-image:url(../images/deegree2.png);
	width:100%;
    background-repeat: no-repeat;
	padding:55px 0px 0px 110px;
}
.events a{
	color:#677d34;
}
.events a:hover {
	opacity: 0.7;
}
.events-title{
	background-color:#ef945f;
	border-radius: 10px;
	color:#fff;
	padding:10px;
	width:80%;
}
.events-title-s{
	color:#f9e79b;
}
.contact{
	background-color :#f2f2f2;
    background-repeat: no-repeat;
	padding:30px;
}
footer{
	background-color: #d45c9e;
	 padding:10px;
	 color:#fff;
}
.slider{
	padding: 10px 0px 60px 0px;
}
.more a{
	color:#C9C9C9;
}
.more a:hover {
	opacity: 0.7;
}
.pgwSlider {
    width: 100%;
    color: #fff;
}

.pgwSlider a{
    display: block;
    text-decoration: none;
    color: #fff;
}

.pgwSlider .ps-current {
    float: left;
    width: 74%;
    overflow: hidden;
    height: inherit;
    position: relative;
    font-size: 1rem;
}

.pgwSlider.listOnTheLeft .ps-current {
    float: right;
}

.pgwSlider .ps-current ul {
    width: 100%;
}

.pgwSlider .ps-current li {
    width: 100%;
    z-index: 1;
    opacity: 0;
    display: none;
}

.pgwSlider .ps-current img {
    max-width: 100%;
    min-width: 100%;
    height: auto;
    display: block;
    transition: margin-top 250ms linear;
}

.pgwSlider .ps-caption {
    position: absolute;
    width: 100%;
    padding: 12px;
    background: rgba(0, 0, 0, 0.7);
    filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#99000000,endColorstr=#99000000);
    left: 0;
    bottom: 0;
    display: none;
    z-index: 3;
}

ul.pgwSlider,
.pgwSlider  ul {
    float: right;
    width: 25%;
    padding: 0;
    list-style: none;
    margin: 0;
}

ul.pgwSlider.listOnTheLeft,
.pgwSlider.listOnTheLeft > ul {
    float: left;
}

ul.pgwSlider > li,
.pgwSlider > .ps-list > li {
    height: 50px;
    margin-bottom: 6px;
    overflow: hidden;
    position: relative;
    opacity: 0.6;
    filter: alpha(opacity=60);
    font-size: 0.8rem;
    transition: opacity 200ms linear;
}

ul.pgwSlider > li:last-child,
.pgwSlider > ul > li:last-child {
    margin-bottom: 0;
}

ul.pgwSlider > li span,
.pgwSlider > .ps-list > li span {
    display: block;
    width: 100%;
    position: absolute;
    bottom: 0;
    padding: 5px;
    background: rgba(0, 0, 0, 0.7);
    filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#99000000,endColorstr=#99000000);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

ul.pgwSlider > li:hover,
.pgwSlider > ul > li:hover {
    opacity: 1 !important;
}

ul.pgwSlider > li img,
.pgwSlider > ul > li img {
    width: 100%;
    min-height: 100%;
    display: block;
    transition: margin-top 250ms linear;
}

.pgwSlider .ps-prevIcon {
    border-color:transparent #fff transparent;
    border-style: solid;
    border-width: 10px 10px 10px 0;
    display: block;
}

.pgwSlider .ps-nextIcon {
    border-color:transparent #fff transparent;
    border-style: solid;
    border-width: 10px 0 10px 10px;
    display: block;
}

.pgwSlider .ps-current .ps-prev {
    background: rgba(0, 0, 0, 0.5);
    filter:  progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr='#99000000', endColorstr='#99000000');
    -ms-filter: "progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr='#99000000', endColorstr='#99000000')";
    border: 1px solid #777;
    border-left: 0;
    border-radius: 0 4px 4px 0;
    position: absolute;
    padding: 20px 20px 20px 17px;
    left: 0;
    top: 45%;
    cursor: pointer;
}
.pgwSlider .ps-current .ps-next {
    background: rgba(0, 0, 0, 0.5);
    filter:  progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr='#99000000', endColorstr='#99000000');
    -ms-filter: "progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr='#99000000', endColorstr='#99000000')";
    border: 1px solid #777;
    border-right: 0;
    border-radius: 4px 0 0 4px;
    position: absolute;
    padding: 20px 17px 20px 20px;
    right: 0;
    top: 45%;
    cursor: pointer;
}
/*
 * The media-queries are not used because IE8 doesn't support them.
 */
ul.pgwSlider.wide > li,
.pgwSlider.wide > ul > li {
    width: 100% !important;
}

.pgwSlider.narrow .ps-current {
    margin-bottom: 6px;
    font-size: 0.8rem;
}

.pgwSlider.narrow .ps-current img {
    width: 100%;
    min-height: inherit;
}

.pgwSlider.narrow .ps-current,
ul.pgwSlider.narrow,
.pgwSlider.narrow > ul {
    width: 100%;
}

ul.pgwSlider.narrow > li,
.pgwSlider.narrow > .ps-list > li {
    float: left;
    min-height: 50px;
    max-height: 70px;
    min-width: 15%;
    font-size: 0.7rem;
    margin-bottom: 0;
}

ul.pgwSlider.narrow.listOnTheLeft > li,
.pgwSlider.narrow.listOnTheLeft > ul > li {
    float: right;
}

.pgwSlider.narrow .ps-caption {
    padding: 8px;
}

.pgwSlider.narrow .ps-current .ps-prev {
    padding: 15px 15px 15px 12px;
    top: 40%;
}

.pgwSlider.narrow .ps-current .ps-next {
    padding: 15px 12px 15px 15px;
    top: 40%;
}
.line{
	background-color: #AAAAAA;
	width: 100%;
	padding: 1px;
	margin: 10px 0px;
}
.line-pink{
	background-color: #e669a7;
	width: 11%;
	padding: 3px;
	margin-bottom: 20px;
	border-radius: 5px;
}
.line-green1{
	background-color: #73a205;
	width: 22%;
	padding: 3px;
	margin-bottom: 20px;
	border-radius: 5px;
}
.statics {
	padding: 50px;
}
.bg-pink{
	background-color: #d45c9e;
	
}
.bg-pinks{
	background-color: #ff6782 !important;
	
}
.ubu {
	 background: url(../images/ubu.png) 0 0 no-repeat;
	 background-position:right;
}
.col-padding { padding: 4rem; }

/* ======================================
GLOBAL
====================================== */

html,body{
    margin: 0 !important;
    padding: 0 !important;
}

*{
    box-sizing:border-box;
}


/* ======================================
HEADER
====================================== */

.main-header{
   margin-top: -25px !important; /* ดึงขึ้นไปทับขอบขาว 1px */
    width: 100% !important;
	overflow: visible !important;
}

.top-gold{
    height:8px;
    background:#d4a632;
}

.top-blue{
    height:50px;
    background:#2d4294;
}


/* ======================================
HERO
====================================== */

.hero-section{
    background:#f8f8f8;
    position:relative;
    padding:20px 0;
    overflow:hidden;
}

/* แถบเฉียง */

.hero-section::before{
    content:'';
    position:absolute;
    width:90px;
    height:300px;
    background:#2d4294;
    transform:rotate(15deg);
    left:38%;
    top:-30px;
}

.hero-section::after{
    content:'';
    position:absolute;
    width:60px;
    height:300px;
    background:#d4a632;
    transform:rotate(15deg);
    left:42%;
    top:-30px;
}


/* ======================================
BUTTON
====================================== */
/* คอนเทนเนอร์ที่คลุมปุ่มฝั่งขวา */
.header-btn {
    position: relative; /* เพื่อให้โลโก้พื้นหลังอ้างอิงตำแหน่งจากจุดนี้ */
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
    min-height: 100px; /* ปรับให้พอดีกับความสูงของ Logo พื้นหลัง */
}

/* สร้างโลโก้ UBU เป็นพื้นหลัง (Watermark) */
.header-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -20px; /* ปรับตำแหน่งให้เยื้องไปทางขวาตามรูปต้นฉบับ */
    transform: translateY(-50%);
    width: 250px; /* ปรับขนาดโลโก้ตามต้องการ */
    height: 200px;
    background-image: url('../../img/ubu.png'); /* ตรวจสอบพาธไฟล์ให้ถูกต้อง */
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center right;
    opacity: 0.2; /* ทำให้จางลงเพื่อไม่ให้ทับตัวหนังสือปุ่ม */
    z-index: -1; /* วางไว้หลังปุ่ม */
    pointer-events: none; /* ป้องกันไม่ให้โลโก้ขวางการคลิกปุ่ม */
}

/* ปรับแต่งปุ่มเพิ่มเติม */
.btn-header {
    position: relative;
    z-index: 2; /* มั่นใจว่าปุ่มอยู่เหนือโลโก้พื้นหลัง */
    border: 2px solid #2d4294;
    color: #2d4294;
    background: rgba(255, 255, 255, 0.8); /* พื้นหลังปุ่มขาวจางๆ เพื่อให้อ่านง่าย */
    border-radius: 0;
    padding: 10px 25px;
    font-size: 22px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-header:hover {
    background: #2d4294;
    color: white;
}


/* ======================================
MENU
====================================== */

.menu-section{

    background:#ececf3;

    z-index:9999;

    transition:.3s;
	box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}


/* เมื่อ scroll */

.menu-section.fixed{

    position:fixed;

    top:0;

    left:0;

    width:100%;

    box-shadow:
    0 2px 10px rgba(0,0,0,.1);
}


/* placeholder กันเนื้อหากระโดด */

.menu-placeholder{

    display:none;
}

.menu-placeholder.active{

    display:block;
}


/* ======================================
DROPDOWN
====================================== */

.dropdown-menu{

    z-index:99999;
}


.dropdown-submenu{

    position:relative;
}

.dropdown-submenu .dropdown-menu{

    left:100%;
    top:0;
}


/* ======================================
MOBILE
====================================== */

@media(max-width:991px){

.hero-section::before,
.hero-section::after{
display:none;
}

}
/* คลุมกลุ่มโลโก้ */
.logo-box {
    gap: 15px; /* ระยะห่างระหว่างตรากับข้อความ */
    position: relative;
    z-index: 10;
}

/* ปรับขนาดตรามหาวิทยาลัยให้พอดี */
.logo-img-main {
    height: 100px; /* ปรับลดลงตามความเหมาะสม */
    width: auto;
}

/* หัวข้อ UBU ALUMNI */
.alumni-title {
    font-size: 36px; /* ลดจากเดิมเพื่อให้ไม่เบียดแถบเฉียง */
    font-weight: 800;
    color: #2d4294;
    line-height: 1;
    letter-spacing: -1px;
}

.alumni-title span {
    font-weight: 800; /* ทำให้คำว่า ALUMNI บางลงเพื่อให้ดูมีดีไซน์ */
}

/* ชื่อหน่วยงานด้านล่าง */
.department-name {
    font-size: 18px;
    color: #444;
    margin-top: 4px;
    font-weight: 500;
}

.university-name {
    font-size: 18px;
    color: #2d4294;
    font-weight: 600;
}


/* Container หลักของสไลด์ */
.ubu-slider-wrapper {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    background-color: #2d4294;
    display: block !important; /* มั่นใจว่าแสดงผล */
}

.ubu-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 10%;
}

.ubu-slide.active {
    opacity: 1;
}

/* พื้นหลังและ Overlay */
.ubu-slide img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.slider-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(45, 66, 148, 0.6); 
    z-index: 2;
}

/* ส่วนเนื้อหา - แก้ไขเน้นย้ำความสำคัญ */
.slider-content {
    position: relative;
    z-index: 10 !important; /* ให้อยู่เหนือ overlay และรูปแน่นอน */
    color: #ffffff !important;
}

/* ปรับ h1 เฉพาะจุด */
.slider-content h1.animate-text-left {
    font-size: 80px !important;
    font-weight: 800 !important;
    margin: 0 !important;
    line-height: 1.1 !important;
    color: #ffffff !important;
    background: none !important; /* ล้างรูปพื้นหลังที่อาจหลุดมาจาก css อื่น */
    border: none !important;
    display: block !important;
    opacity: 0;
    transform: translateX(-100px);
    animation: slideInLeftUBU 1s ease-out forwards !important;
}

.slider-content h1 span {
    color: #d4a632 !important; /* สีทอง ม.อุบล */
}

/* เส้นสีทอง */
.slider-line.animate-line {
    width: 0;
    height: 6px;
    background-color: #d4a632 !important;
    margin: 20px 0 !important;
    opacity: 0;
    animation: growWidthUBU 0.8s ease-out 0.5s forwards !important;
}

/* ข้อความ p */
.slider-content p.animate-text-up {
    font-size: 28px !important;
    font-weight: 300 !important;
    margin: 0 !important;
    color: #ffffff !important;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUpUBU 1s ease-out 1s forwards !important;
}

/* ---------- Keyframes (เปลี่ยนชื่อเพื่อไม่ให้ซ้ำกับระบบอื่น) ---------- */

@keyframes slideInLeftUBU {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes growWidthUBU {
    to {
        opacity: 1;
        width: 150px;
    }
}

@keyframes fadeInUpUBU {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ปรับแต่งสำหรับ Mobile */
@media (max-width: 768px) {
    .ubu-slider-wrapper { height: 350px !important; }
    .slider-content h1.animate-text-left { font-size: 38px !important; }
    .slider-content p.animate-text-up { font-size: 18px !important; }
    .ubu-slide { padding-left: 5% !important; }
}
.news-card {
    border: 2px solid #4c63d2;
    border-radius: 25px;
    overflow: hidden;
    background: #fff;
    transition: all 0.3s ease;
    height: 100%;
    padding: 16px;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.news-thumb {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 15px;
}

.news-date {
    font-size: 15px;
    color: #444;
    margin-top: 18px;
    margin-bottom: 18px;
}

.news-title {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.45;
    color: #111;
    min-height: 120px;
    display: block;
    text-decoration: none;
}

.news-title:hover {
    color: #4c63d2;
}

.news-location {
    font-size: 15px;
    color: #444;
    margin-top: 25px;
}

.news-link {
    text-decoration: none !important;
}

@media (max-width: 991px) {
    .news-title {
        font-size: 1.2rem;
        min-height: auto;
    }

    .news-thumb {
        height: 220px;
    }
}
/* สารจากผู้บริหาร อธิการบดี */
/* SECTION */
.president-section{
    width:100%;
    min-height:100vh;
    background:#f5f5f5;
    position:relative;
    overflow:hidden;
    display:flex;
    align-items:center;
    padding:80px 0;
}

/* Background Shape */
.president-section::before{
    content:'';
    position:absolute;
    left:-150px;
    top:-100px;
    width:500px;
    height:500px;
    background:#dce8f1;
    border-radius:50%;
    opacity:.8;
}

.president-section::after{
    content:'';
    position:absolute;
    left:-120px;
    bottom:-180px;
    width:450px;
    height:450px;
    background:#dce8f1;
    border-radius:50%;
    opacity:.7;
}

/* Extra pastel shapes */
.shape1,
.shape2,
.shape3{
    position:absolute;
    border-radius:50px;
    opacity:.35;
}

.shape1{
    width:220px;
    height:220px;
    background:#efe3b8;
    left:120px;
    top:250px;
    border-radius:50%;
}

.shape2{
    width:180px;
    height:180px;
    background:#ead8e6;
    left:0;
    bottom:220px;
    border-radius:40px;
}

.shape3{
    width:250px;
    height:250px;
    background:#dfead1;
    left:50px;
    bottom:120px;
    border-radius:50%;
}

/* CONTENT */
.president-content{
    position:relative;
    z-index:2;
}

.quote-icon{
    width:80px;
    opacity:1;
    margin-bottom:25px;
}

.main-title{
    font-size:3rem;
    font-weight:700;
    color:#3e4d89;
    margin-bottom:40px;
    line-height:1.2;
}

.line{
    width:100%;
    height:1px;
    background:#d7d7d7;
    margin-bottom:40px;
}

.description{
    font-size:1.45rem;
    line-height:2;
    color:#555;
}

.signature{
    margin-top:70px;
    text-align:right;
}

.signature h3{
    font-size:1.8rem;
    font-weight:700;
    color:#444;
}

.signature p{
    font-size:1.4rem;
    color:#666;
}

/* IMAGE SIDE */
.president-image{
    position:relative;
    z-index:2;
    text-align:center;
}

.president-image img{
    width:100%;
    max-width:650px;
    border-radius:10px;
}


/* RESPONSIVE */
@media(max-width:991px){

    .president-section{
        padding:60px 20px;
    }

    .main-title{
        font-size:2.5rem;
    }

    .description{
        font-size:1.1rem;
        line-height:1.8;
    }

    .signature{
        text-align:left;
    }

    .signature h3{
        font-size:1.8rem;
    }

    .signature p{
        font-size:1.1rem;
    }

    .president-image{
        margin-top:50px;
    }

}

.ubu-alumni-page{
    font-family:'Kanit',sans-serif;
    background:#f5f5f5;
    overflow-x:hidden;
}

/* =================================================
   HERO
================================================= */
.ubu-hero{
    position:relative;
    width:100%;
    height:560px;
    overflow:hidden;
    background:url('../../img/ubu_sign.jpg') center center;
    background-size:cover;
}

.ubu-hero::before{
    content:'';
    position:absolute;
    inset:0;
    background:rgba(232,238,248,.86);
}

/* diagonal white shape */

.ubu-hero::after{
    content:'';
    position:absolute;
    top:-50px;
    left:38%;
    width:420px;
    height:700px;
    background:rgba(255,255,255,.45);
    transform:skewX(-35deg);
}

.ubu-hero .container{
    position:relative;
    z-index:5;
    height:100%;
}

.ubu-hero-row{
    height:100%;
    align-items:flex-start;
    padding-top:85px;
}

.ubu-title{
    font-size:72px;
    line-height:1.15;
    color:#244796;
    font-weight:700;
    margin:0;
}

.ubu-right-box{
    padding-top:10px;
}

.ubu-desc{
    font-size:24px;
    color:#222;
    margin-bottom:35px;
}

.ubu-link{
    display:flex;
    justify-content:space-between;
    align-items:center;
    width:100%;
    border-bottom:2px solid #244796;
    padding:16px 0;
    color:#244796;
    text-decoration:none;
    font-size:26px;
    font-weight:600;
    transition:.25s;
}

.ubu-link:hover{
    color:#16306d;
    padding-left:10px;
}

/* ===================================================
   STATS
=================================================== */

.ubu-stats{
    margin-top:-110px;
    position:relative;
    z-index:10;
    background:rgba(20,39,88,.83);
}

.ubu-stat{
    text-align:center;
    padding:35px 10px;
    border-right:1px solid rgba(255,255,255,.35);
}

.ubu-stat:last-child{
    border-right:none;
}

.ubu-stat-number{
    color:#fff;
    font-size:72px;
    font-weight:700;
    line-height:1;
}

.ubu-stat-text{
    color:#fff;
    font-size:28px;
    margin-top:15px;
    font-weight:500;
}

/* ===================================================
   CONTACT
=================================================== */

.ubu-contact{
    background:#fff;
    padding:70px 0 30px;
}

.ubu-contact-title{
    font-size:48px;
    color:#244796;
    font-weight:700;
    margin-bottom:30px;
}

.ubu-contact-text{
    font-size:30px;
    line-height:1.85;
    color:#222;
}

.ubu-contact-info{
    padding-top:55px;
}

.ubu-contact-item{
    display:flex;
    align-items:flex-start;
    margin-bottom:28px;
    font-size:30px;
    color:#222;
}

.ubu-contact-item i{
    width:55px;
    font-size:38px;
    color:#5a5a5a;
    margin-top:4px;
}

/* ===================================================
   MAP
=================================================== */

.ubu-map{
    margin-top:40px;
    overflow:hidden;
    border:1px solid #d8d8d8;
}

.ubu-map iframe{
    width:100%;
    height:520px;
    border:0;
}

/* ===================================================
   FOOTER
=================================================== */

.ubu-footer{
    position:relative;
    background:#fff;
    border-top:1px solid #d9d9d9;
    padding:55px 0 45px;
    overflow:hidden;
}

.ubu-footer-watermark{
    position:absolute;
    right:40px;
    bottom:-20px;
    width:460px;
    opacity:.08;
}

.ubu-footer-logo{
    width:130px;
    margin-bottom:25px;
}

.ubu-footer-text{
    font-size:24px;
    line-height:1.9;
    color:#222;
}

.ubu-footer-social{
    margin-top:20px;
}

.ubu-footer-social a{
    display:inline-block;
    margin-right:18px;
    color:#111;
    font-size:18px;
}

.ubu-footer-menu{
    padding-left:50px;
}

.ubu-footer-menu a{
    display:block;
    text-decoration:none;
    color:#111;
    font-size:22px;
    margin-bottom:20px;
}

.ubu-footer-menu a:hover{
    color:#244796;
}

/* ===================================================
   BOTTOM BAR
=================================================== */

.ubu-bottom{
    width:100%;
    height:85px;
    background:#244796;
    border-bottom:12px solid #f0b321;
	margin:0;
}

/* ===================================================
   RESPONSIVE
=================================================== */

@media(max-width:1200px){

    .ubu-title{
        font-size:52px;
    }

    .ubu-contact-title{
        font-size:52px;
    }

}

@media(max-width:991px){

    .ubu-hero{
        height:auto;
        padding-bottom:120px;
    }

    .ubu-hero-row{
        padding-top:60px;
    }

    .ubu-title{
        font-size:42px;
        margin-bottom:40px;
    }

    .ubu-desc{
        font-size:20px;
    }

    .ubu-link{
        font-size:20px;
    }

    .ubu-contact-title{
        font-size:42px;
    }

    .ubu-contact-text{
        font-size:20px;
    }

    .ubu-contact-item{
        font-size:20px;
    }

    .ubu-contact-item i{
        font-size:28px;
    }

    .ubu-footer-menu{
        padding-left:0;
        margin-top:40px;
    }

    .ubu-footer-menu a{
        font-size:22px;
    }

    .ubu-footer-text{
        font-size:18px;
    }

    .ubu-stat{
        border-right:none;
        border-bottom:1px solid rgba(255,255,255,.2);
    }

    .ubu-stat-number{
        font-size:42px;
    }

    .ubu-stat-text{
        font-size:18px;
    }

}
#pills-tab{
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(240px, 1fr));
    gap:12px;
    width:100%;
}

#pills-tab .nav-item{
    width:100%;
}

#pills-tab .nav-link{
    width:100%;
    height:52px;
    background:#39479c;
    color:#fff;
    border:none;
    border-radius:6px;
    display:flex;
    align-items:center;
    justify-content:center;
    text-align:center;
    font-weight:500;
    transition:all .25s ease;
}

/* Hover */
#pills-tab .nav-link:hover{
    background:#e3b24b;
    color:#fff;
    transform:translateY(-2px);
}

/* Active */
#pills-tab .nav-link.active{
    background:#e3b24b;
    color:#fff;
}