/* ตั้งค่าพื้นฐานสำหรับ widget */
.post-mvps {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    align-items: flex-start;
    margin: 20px 0;
}

/* ส่วน Slider ด้านซ้าย */
.posts-left {
    width: 60%; /* Slider ครอบ 60% ของความกว้าง */
    position: relative;
}

.posts-left .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
	background-color: #FFFFFF;
    border-radius: 34px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.posts-left .swiper-slide img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    aspect-ratio: 1 / 1;
	margin-bottom:-1px;
}

.posts-left .swiper-slide:hover {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* ปุ่ม Next/Prev */
/* Pagination */
.post-mvps .custom-nav .swiper-pagination .swiper-pagination-bullet:before{
    border: 1px solid #000000;
}
.post-mvps .custom-nav .swiper-pagination .swiper-pagination-bullet:not(.swiper-pagination-bullet-active){
    background: #000;
}

/* ส่วน Detail Content ด้านขวา */
.post-right {
    width: 35%;
	height: 495px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 20px;
	position: relative;
    overflow: hidden;
}

.detail-content {
    display: none; /* ซ่อนเนื้อหาทั้งหมดในตอนแรก */
    text-align: center;
	width: 100%;
    height: auto
}

.detail-content img {
    height: 495px;
    width: 100%;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
	background-color:#ffffff;
	border-radius: 30px;
}

.detail-content::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(84, 44, 90, 0.5); /* สีม่วงเข้มโปร่งใส */
    border-radius: 30px; /* ให้โค้งตามกรอบภาพ */
    z-index: 1; /* วางเลเยอร์อยู่บนภาพ */
    pointer-events: none; /* ไม่ให้รบกวนการคลิก */
}

/* .detail-content a {
    display: inline-block;
    padding: 0px;
    background: #ffffff;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: background 0.3s;
	border-radius:30px;
}

.detail-content a:hover {
    background: #005bb5;
} */

/* เนื้อหาที่ Active ให้แสดง */
.detail-content[data-index="0"] {
    display: relative;
}

.post-right-text{
	position: absolute;
    bottom: 0;
    padding: 25px;
    font-size: 40px;
    font-family: kanit;
    font-weight: bold;
    color: #fff;
	letter-spacing:1px;
	z-index:2;
}

.open-post-mvps{
	position: absolute;
    bottom: 5px;
    right: 20px;
    z-index: 2;
}
.post-mvps .detail-content:hover svg circle {
    fill: black;
    stroke: #E0FF01;
}
.post-mvps .detail-content:hover svg path {
    fill: #E0FF01;
}
.post-mvps .detail-content svg circle, 
.post-mvps .detail-content svg path {
    transition: all .3s;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .posts-left {width: 100%;}
    .post-right {width: 100%;}
}

@media (max-width: 768px) {
    .posts-left .swiper-slide {
        border: none;
        box-shadow: none;
    }

    .posts-left .swiper-slide:hover {
        transform: none;
        box-shadow: none;
    }

    .post-right a {
        width: 100%;
    }
}

/*  */

.post-mvps .label {
    font-family: Roboto;
    font-size: 18px;
    font-weight: 700;
    line-height: 21px;
    letter-spacing: 0.1em;
    text-align: left;
    text-transform: uppercase;
    margin-right: 25px;
}
.post-mvps .dropdown {
    display: none;
    position: absolute;
    top: 100%;
    background: #EFEFEF;
    color: #000;
    left: 0;
    width: 100%;
    padding: 23px 0 8px;
    z-index: -1;
    margin-top: -17px !important;
    border-radius: 0 0 22px 22px;
    overflow: hidden;
}
.post-mvps .dropdown .item {
    font-family: Kanit;
    font-size: 18px;
    font-weight: 300;
    line-height: 30px;
    letter-spacing: 0em;
    text-align: left;
    color: #000;
    cursor: pointer;    
    padding: 4px 18px
}
.post-mvps .dropdown .item:hover{
    background: #E0FF01;
}
.post-mvps .topic-filter {
    border-radius: 100px;
    background: #000000;
    font-family: Kanit;
    font-size: 18px;
    font-weight: 300;
    line-height: 30px;
    letter-spacing: 0em;
    text-align: left;
    color: #fff;
    padding: 7px 18px;
    min-width: 216px;
    background-image: url(../images/arr-yellow.svg);
    background-repeat: no-repeat;
    background-size: 11px;
    background-position: center right 18px;
    position: relative;
    cursor: pointer;
}
.post-mvps .filter {
    display: flex;
    align-items: center;
    position: absolute;
    top: -88px;
    right: 0;
    z-index: 2;
}
.post-mvps .post-content .content {
    /*position: absolute;
    top: 0;
    right: 0;*/
    width: 100%;
    background: transparent;
/*    height: 100%;*/
    padding: 24px 20px;
}
.post-mvps .post-content img{
    vertical-align: top;
    width: 100%;
    aspect-ratio: 1/0.5;
    object-fit: cover;
	border-radius: 30px;
}

.post-mvps .post-content:hover img {
    border-radius: 0px;
}

.post-mvps .post-content:hover .excerpt{
/* 	display:block !important;
    color:#ffffff;
	position: absolute;
    top: 50%;
    padding: 0px 30px 0px 0px; */
	
 	display: -webkit-box !important; /* เปิดใช้งาน Flexbox */
    -webkit-line-clamp: 4; /* จำกัดจำนวนบรรทัด */
    -webkit-box-orient: vertical; /* การจัดเรียงในแนวตั้ง */
    overflow: hidden; /* ซ่อนข้อความที่เกิน */
    text-overflow: ellipsis; /* เพิ่ม "..." เมื่อข้อความเกิน */
    color: #ffffff; /* สีข้อความ */
    position: absolute; /* จัดตำแหน่งแบบ absolute */
    top: auto; /* ไม่มีการกำหนดตำแหน่งด้านบน */
    bottom: 0px; /* ตำแหน่งด้านล่าง */
    padding: 0px 30px 0px 0px; /* ระยะห่างด้านขวา */
    margin-bottom: 20px; /* ระยะขอบด้านล่าง */
}

.post-mvps .post-content:hover .title{
	position: absolute;
    bottom: 40%;
    padding: 0px 20px 0px 0px;
}

.post-mvps .post-content:hover{
	box-shadow: 3px 3px 8px 5px #E0FF01;
    transition: all 0.3s ease;
}
.post-mvps .post-content {
    display: block;
    height: 100%;
    border-radius: 30px;
    overflow: hidden;
	
	 margin: 10px 15px 5px 5px;
}
.post-mvps .swiper-slide{
    height: auto !important;
    margin-top: 0 !important;
    margin-bottom: 20px
}
.post-mvps .post-content .title {
    font-family: Kanit;
	color:#E0FF01;
    font-size: 18px;
    font-weight: 700;
    line-height: 21px;
    letter-spacing: 0.1em;
    text-align: left;
    text-transform: uppercase;
    margin-top: 0px;
    margin-bottom: 15px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-overflow: -o-ellipsis-lastline;
}
[lang="th"] .post-mvps .post-content .title{
    font-family: Kanit;
}
.post-mvps .post-content .topics .topic{
    font-family: Kanit;
    font-size: 14px;
    font-weight: 300;
    line-height: 20px;
    letter-spacing: 0em;
    padding: 6px 19px;
    background: #000000;
    border-radius: 100px;
    color: #FFFFFF;
    display: inline-block;
    vertical-align: top;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}
.post-mvps .post-content .topics .topic+.topic {
    display: none;
}
.post-mvps .post-content .excerpt {
	display:none !important;
    margin-bottom: 20px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    text-overflow: -o-ellipsis-lastline;
}
.post-mvps .post-content .date svg {
    margin-right: 10px;
}
.post-mvps .post-content .date {
    display: flex;
    align-items: center;
    text-transform: uppercase;
    font-size: 14px;
    line-height: 20px;
}
.post-mvps .custom-nav {
    display: inline-flex;
    float: left;
    margin-top: 34px;
	
	background-color: #d7f018;
    padding: 3px;
    border-radius: 20px;
}

.post-mvps .swiper-grid-column>.swiper-wrapper{
    flex-direction: row;
    /* max-height: 860px; */
}

@media (max-width: 1600px){
    .post-mvps .custom-nav{
        margin-top: 36px;
    }
	.detail-content img {height: 465px;}
	.post-right {height: 465px;}
}
@media (max-width: 1366px){
	.detail-content img {height: 450px;}
	.post-right {
		height: 450px;
		width: 100%;
        margin: auto;
	}
	.posts-left {
		width: 100%;
	}
	
	.post-right-text {
		font-size: 32px;
	}
	.detail-content img {
		object-fit: contain;
	}
	.post-mvps .posts-right{order:1;}
	.post-mvps .posts-left{order:2;}
	.post-mvps .custom-nav {
		float: unset;
		display: flex;
		place-self:center;
	}
}
@media (max-width: 1199px) {
	
	
	.post-mvps {
        flex-direction: column;
    }
}
@media (max-width: 1024px) {
    .post-news .post-content .content {
        padding: 46px 20px;
    }
	
}
@media (max-width: 991px){
    .post-mvps .post-content{
        flex-wrap: wrap;
    }
    .post-mvps .post-content img{
        width: 100%;
        aspect-ratio: 1/1;
    }
    .post-mvps .post-content .content{
        width: 100%;
        border-radius: 30px;
        margin-top: -38%;
        padding: 19px 25px;
        min-height: 257px;
    }
    .post-mvps .post-content .topics .topic {
        padding: 5px 16px;
    }
    .post-mvps .post-content .title{
        margin-top: 23px;
    }
    .post-mvps .swiper-slide{
        margin-bottom: 22px;
    }
    .post-mvps .post-content .open-post svg {
        width: 48px;
        height: 48px;
    }
    .post-mvps .post-content .open-post {
        top: 32vw;
        transform: translateY(-50%);
    }
}
@media (max-width: 767px){
    .post-mvps .filter {
        top: 0;
        position: relative;
        margin-bottom: 36px;
    }
    .post-mvps .swiper-grid-column>.swiper-wrapper{
        text-align: left;
    }
    .post-mvps .swiper{
        text-align: center;
    }
    .post-mvps .custom-nav .swiper-pagination {
        margin: 0 20px;
    }
    .post-mvps .topic-filter{
        flex: 1;
    }
    .post-mvps .swiper-slide{
        text-align: left;
    }
}
@media (max-width: 575px){
    .post-mvps .filter{
        flex-direction: column;
        justify-content: flex-start;
        align-items: start;
    }
    .post-mvps .label {
        margin-right: 0;
        margin-bottom: 13px;
    }
    .post-mvps .topic-filter{
        width: 100%;
    }
    .post-mvps .post-content .open-post {
        right: 9px;
        top: 59.8vw;
        transform: translateY(-50%);
    }
    .post-mvps .post-content .content{
        margin-top: -38.8%;
    }
}