@import url('https://fonts.googleapis.com/css2?family=Work+Sans:wght@300;400;500;600;700&display=swap');

body{
	font-family: 'Work Sans', sans-serif;
	font: 16px 'Work Sans', sans-serif;
	line-height: 26px;
	font-weight: normal;
}
a{
	font-size: 16px;
	line-height: 26px;
	font-weight: normal;
}
#login-nav .dropdown, #account-nav {
    float: none;
    height: 100%;
}
a#site-logo img {
    max-width: 230px;
}
.search-text-div input {
    line-height: 20px;
    padding: 5px 30px;
    width: 100%;
    height: 50px !important;
    border-radius: 30px;
}
.search-text-div input,
#header-search{
	float: none;
}
header#header {
    padding: 15px 0;
}
#header-search {
    width: 100%;
    margin-left: 30px;
}
.header-row.row {
    align-items: center;
}
.search-text-div {
    margin: 0;
}
button.search-submit img {
    filter: brightness(100);
}
button.search-submit {
    background-image: linear-gradient(to bottom, #ef4ac8, #bf76ae) !important ;
    background-size: auto !important;
    background-repeat: no-repeat !important;
    position: absolute;
    right: 14px;
    top: 4px;
    height: 42px;
    width: auto;
    padding: 0 40px;
    border-radius: 30px;
    line-height: 1;
}
.searchform {
    height: 100%;
}
.search-submit-div {
    width: 75px;
    height: 45px;
    position: absolute;
    right: 70px;
    top: 0px;
    padding: 0 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.user-nav a, #footer-nav li a, footer{
	font-size: 16px;
	text-transform: capitalize;
    font-weight: 600;
    text-shadow: none;
}
#login-nav a,
input#wp-submit {
    background: #FA0000;
    color: #fff;
    height: 45px;
    line-height: 45px;
    padding: 0 35px;
    border: none;
    transition: all 0.4s ease 0s;
}
#loginform .lost-password:hover,
#account-nav:hover .dropdown-content ul li a:hover, #footer-nav li a:hover
{
	background: transparent;
	color: #FA0000;
}
#login-nav a:hover, input#wp-submit:hover {
    background: #000;
}
#account-nav:hover .display-name,
#account-nav:hover .dropdown-content ul {
    border: none;
}
#account-nav .dropdown-content {
    top: 43px;
    width: 200px !important;
}
#account-nav:hover .dropdown-content ul {
    padding: 10px 0;
}
#account-nav:hover .dropdown-content ul li a {
    padding: 7px 0;
    display: inline-block;
    width: 100%;
    color: #000;
    font-weight: 500;
}
#account-nav .dropdown-content li {
    border-bottom: 1px solid #dedede;
}
#account-nav:hover .dropdown-content {
    width: 200px;
}
#login-nav .dropdown-content{
	border: 1px solid #Dedede;
}
#login-nav .dropdown-content {
    top: 44px;
    background: #FFF;
    width: 300px;
    padding: 20px
}
#loginform .lost-password {
    float: none;
    display: inline-block;
    background: transparent;
    color: #000;
    padding: 0;
    margin: 10px 0 0;
}
input[type="text"], input[type="password"], textarea, input[type="email"] {
    width: 100% !important;
    height: 45px;
    line-height: 45px;
    color: #000;
}
form#loginform label {
    margin-bottom: 5px;
    font-size: 14px;
    font-weight: 500;
}
#account-nav .dropdown-handle .avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
}
#account-nav .dropdown-handle .display-name {
    float: none;
    font-size: 16px;
    text-transform: capitalize;
    line-height: 26px;
}
#main-nav {
    background: transparent;
    border-bottom: 1px solid #eee;
    padding: 20px 0;
}
#main-nav ul, #main-nav .menu>li>a: hover{
	text-shadow: none;
}
#main-nav .menu>li>a{
	color: #000;
}
#main-nav .menu>li,
#main-nav .menu{
	background: none;
	/*height: inherit;*/
	float: none;
}
ul#menu-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}
#main-nav .menu>li:last-child {
    margin: 0;
}
#main-nav .menu>li {
    margin: 5px;
}
#main-nav .menu > li > a {
    color: #fff !important;
    padding: 0 20px;
    height: 40px;
    display: inline-block;
    border-radius: 30px;
    font-size: 14px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-weight: bold;
    background: linear-gradient(145deg, #ef4ac8, #bf76ae); 
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); 
    transition: transform 0.3s ease, background 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    will-change: transform, background;
}

#main-nav .menu > li > a:hover,
#main-nav .menu > li.current-menu-item > a {
    background: linear-gradient(145deg, #d038a3, #a05b8e); 
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
    color: #fff;
    border: none;
}
.thumb .clip-link, .thumb .clip {
    position: relative;
    bottom: unset;
    top: unset;
    left: unset;
    right: unset;
    height: 100%;
    display: inline-block;
    width: 100%;
}
#footer {
    background: #000;
}
#footbar .wrap {
    padding: 0;
}
#footer-nav ul {
    padding: 0;
}
#footer-nav li a {
    text-decoration: none;
    color: #fff !important;
    font-weight: 400;
    transition: color 0.3s ease, transform 0.3s ease !important;
}

#footer-nav li a:hover {
    color: #ef4ac8 !important; 
    transform: scale(1.1) !important;
}
#footer{
	border: none;
}
#copyright a, #credits a, h2.entry-title a:hover {
	color: #ef4ac8 !important;
}
h2.entry-title a {
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    display: inline-block;
    width: 100%;
}
#copyright, #credits {
    font-size: 14px;
    color: #fff;
    font-weight: 400;
}
.item .entry-summary {
    line-height: 20px;
    font-size: 14px;

}
.item .entry-meta, .item .stats{
	height: inherit;
}
span.author.vcard a {
    color: #000;
    margin-right: 5px;
}
.articleCol {
    margin-bottom: 35px;
}
p.stats {
    margin: 15px 0 10px !important;
    display: block;
}
.section-content {
    background: transparent;
}
a.info-toggle-button,
p.form-submit input#submit {
    background: transparent;
    border: 1px solid #ffffff;
    text-shadow: none;
    color: #fff;
    text-decoration: none;
    height: 40px;
    display: inline-block;
    line-height: 40px;
    padding: 0 45px;
    font-size: 14px;
    font-weight: 500;
}
a.info-toggle-button:hover, p.form-submit input#submit:hover {
    background: #ffffff;
    color: #ef4ac8 !important;
}
.entry-meta {
    color: hotpink;
    font-size: 14px;
}
div#extras a {
    color: #FA0000;
    margin-right: 5px;
}
#extras h4 {
    font-size: 16px;
    margin-bottom: 10px;
}
#author, #email, #url {
    height: 45px;
    line-height: 45px;

}
textarea#comment, 
#author, #email{
	color: #000;
    background: #f7f7f7;
}
.mob-menu, .mob-sidemenu {
    display: none;
}
span.pages {
    height: 45px;
    width: auto;
    padding: 0 25px;
    line-height: 45px;
    color: #000;
    padding: 0 !important;
}
.pag-nav a, span.current {
    height: 45px;
    width: 45px;
    line-height: 45px;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
}
.pag-nav span{
	padding: 0 15px !important;
}
.pag-nav a, .pag-nav span {

    text-shadow: none;
    border: none !important;
    box-shadow: none !important;
    font-size: 16px;
    font-weight: 500 !important;
    background-color: #f7f7f7 !important;
    background-image: none !important;
}
.pag-nav .current{
	background-color: #000 !important;
    color: #fff !important;
}
.pag-nav a:hover {
    background-color: #000 !important;
    color: #fff !important;
}
.item img{
	width:100% !important;
}

.buttonsayiw {
    padding: 0.5em 1.5em; /* ขนาดปุ่มที่เล็กลง */
    background-color: rgba(255, 255, 255, 0.2); /* พื้นหลังโปร่งใส */
    border: 2px solid transparent; /* ไม่มีขอบในสถานะปกติ */
    border-radius: 30px; /* ขอบมน */
    color: white; /* สีตัวอักษร */
    position: relative;
    display: inline-block;
    font-size: 14px; /* ขนาดตัวอักษรเล็กลง */
    cursor: pointer;
    text-transform: uppercase; /* ทำให้ตัวอักษรเป็นตัวพิมพ์ใหญ่ */
    overflow: hidden; /* ป้องกันไม่ให้เนื้อหาไหลออกนอกปุ่ม */
    transition: all 0.4s ease; /* Transition สำหรับการเปลี่ยนแปลง */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); /* เงาที่นุ่มนวล */
}

.buttonsayiw::after {
    content: '';
    position: absolute;
    height: 200%; 
    width: 200%; 
    border-radius: 50%; /* ขอบมน */
    background-image: linear-gradient(to bottom, #ef4ac8, #bf76ae); /* Gradient */
    top: 50%; 
    left: 50%; 
    z-index: -1; /* ทำให้ gradient อยู่ด้านหลัง */
    transition: transform 0.4s ease; /* Transition สำหรับการเปลี่ยนแปลง */
    transform: translate(-50%, -50%) scale(0); /* ซ่อนในสถานะปกติ */
}

.buttonsayiw:hover::after {
    transform: translate(-50%, -50%) scale(1); /* แสดงเมื่อ hover */
}

.buttonsayiw:hover {
    color: #ffffff; /* เปลี่ยนสีตัวอักษรเป็น #ef4ac8 เมื่อ hover */
    border-color: #ef4ac8; /* ขอบสีเมื่อ hover */
    box-shadow: 0 8px 20px rgba(239, 74, 200, 0.5); /* เงาที่เพิ่มขึ้นเมื่อ hover */
    animation: pulse 0.5s ease infinite; /* เอฟเฟกต์การกระพริบ */
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05); /* ขยายขนาดปุ่มเล็กน้อย */
    }
}

/* สำหรับ mobile */
.custom-link-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.custom-link-item {
    flex: 1 1 45%; /* ปรับให้มี 2 ไอเทมในแต่ละแถว */
    text-align: center;
    margin-bottom: 15px;
}

/* จัดเรียงปุ่มและรูปใน flex container */
.custom-links-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px; /* ช่องว่างระหว่างปุ่ม */
    justify-content: center;
}

/* Default: Mobile (สูงสุด 2 ปุ่มต่อแถว) */
.custom-link-item {
    flex: 1 1 45%; /* ใช้พื้นที่ 45% ของความกว้างหน้าจอเพื่อใส่ 2 ปุ่ม */
    max-width: 45%;
    text-align: center;
}

/* Tablet (สูงสุด 4 ปุ่มต่อแถว) */
@media (min-width: 768px) {
    .custom-link-item {
        flex: 1 1 22%; /* ใช้พื้นที่ 22% ของความกว้างหน้าจอเพื่อใส่ 4 ปุ่ม */
        max-width: 22%;
    }
}

/* Laptop (สูงสุด 5 ปุ่มต่อแถว) */
@media (min-width: 1024px) {
    .custom-link-item {
        flex: 1 1 18%; /* ใช้พื้นที่ 18% ของความกว้างหน้าจอเพื่อใส่ 5 ปุ่ม */
        max-width: 18%;
    }
}

/* Desktop (สูงสุด 7 ปุ่มต่อแถว) */
@media (min-width: 1200px) {
    .custom-link-item {
        flex: 1 1 13%; /* ใช้พื้นที่ 13% ของความกว้างหน้าจอเพื่อใส่ 7 ปุ่ม */
        max-width: 13%;
    }
}

/* สำหรับรูปภาพ */
.custom-tag-image {
    display: block;
    margin: 0 auto 5px;
    max-width: 100%;
    height: auto;
}

.custom-link-item:hover img {
    transform: scale(1.1); /* ขยายภาพเล็กน้อย */
    filter: brightness(0.9); /* ลดความสว่าง */
    transition: transform 0.3s ease-in-out, filter 0.3s ease; /* เพิ่ม transition เพื่อให้ effect ช้าๆ */
}
