.post-filter-year-widget {
    display: flex;
    flex-direction: column;
    gap: 50px;
}
.post-filter-year-widget .post-item {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    box-shadow: rgb(0 0 0 / 9%) 0px 0px 16px 0px;
    background: #fff;
    padding: 25px;
    border-radius: 20px;
    border: 1px solid #f7f7f7;
    flex: 0 0 calc(50% - 10px);
}
.post-filter-year-widget .posts-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}
.post-filter-year-widget {
    max-width: 100%;
}
.post-filter-year-widget .post-filter-form {
    padding: 30px 40px;
    border-radius: 15px;
    background: linear-gradient(90deg, #35297b 0%, #9e1a23 100%);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
}
.post-filter-year-widget .post-item .thaidate-info {
    flex: 0 0 calc(30% - 10px);
}
.post-filter-year-widget .post-item .post-info_blog {
    flex: 0 0 calc(70% - 10px);
}
.post-filter-year-widget .text-date.t-day, 
.post-filter-year-widget .text-date.t-my {
    background: linear-gradient(90deg, #322B80, #C20E1A);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: "Roboto", "IBM Plex Sans Thai", sans-serif !important;
    font-weight: 600;
}
.post-filter-year-widget .text-date.t-day {
    font-size: 60px;
    text-align: center;
}
.post-filter-year-widget .text-date.t-my {
    font-size: 24px;
    text-align: center;
}
.post-filter-year-widget .post-info_blog h3 {
     font-size: 18px;
     font-weight: 500;
     line-height: 1.4;
     display: -webkit-inline-box;
     -webkit-line-clamp: 3;
     -webkit-box-orient: vertical;
     position: relative;
     overflow: hidden;
     width: 100%;
     min-height: 77px;
}
.post-filter-year-widget .post-info_blog {
     position: relative;
     display: flex;
     flex-direction: column;
     gap: 10px;
}
.post-filter-year-widget .post-item .download-buttonx {
    background: linear-gradient(116deg, rgb(131, 27, 71) 0%, rgb(50, 43, 128) 50.5%, rgb(0, 157, 224) 100%) transparent;
    color: white;
    border: none;
    padding: 10px 28px 10px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 3px 6px rgba(40, 167, 69, 0.2);
    border-radius: 50px;
    font-weight: 400;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: auto;
}
.post-filter-year-widget .post-item span.download-buttonx {
     opacity: 0.7;
     cursor: not-allowed !important;
     background: #686868;
}
.post-filter-year-widget .post-row {
     max-width: 700px;
     width: 100%;
     margin: 0 auto;
     display: flex;
     flex-wrap: nowrap;
     gap: 13px;
     justify-content: center;
     align-items: center;   
}
.post-filter-year-widget .post-filter-form input#post-search {
     flex: 0 0 calc(60% - 10px);
}
.post-filter-year-widget .post-filter-form select#post-year, 
.post-filter-year-widget .post-filter-form .search-button {
     flex: 0 0 calc(20% - 10px);
}
.post-filter-year-widget .post-row input[type="text"],
.post-filter-year-widget .post-row select,
.post-filter-year-widget .post-row button {
    font-size: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    outline: none;
    box-sizing: border-box;
}
.post-filter-year-widget .post-row input[type="text"] {
    flex: 1;
    border: 2px solid #e0e0e0;
    background-color: #fff;
    color: #333;
}
.post-filter-year-widget .post-row input[type="text"]:focus,
.post-filter-year-widget .post-row input[type="text"]:hover {
    border-color: #009de0;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}
.post-filter-year-widget .post-row select {
    min-width: 150px;
    border: 2px solid #e0e0e0;
    background-color: #fff;
    color: #333;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.2em;
    padding-right: 2.5rem;
}
.post-filter-year-widget .post-row select:focus,
.post-filter-year-widget .post-row select:hover {
    border-color: #009de0;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}
.post-filter-year-widget .post-row button {
    background-color: #009de0;
    color: #fff;
    border: none;
    cursor: pointer;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
}
.post-filter-year-widget .post-row button:hover {
    background-color: #0056b3;
    box-shadow: 0 2px 8px rgba(0, 91, 187, 0.2);
}
.post-filter-year-widget .post-row button:active {
    background-color: #004085;
    transform: translateY(1px);
}
.post-filter-year-widget .post-item .download-buttonx svg {
    width: 20px;
    height: 20px;
}
.post-filter-year-widget .post-item a.download-buttonx:hover {
    opacity: 0.7;
}
.post-filter-year-widget button.search-button {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 400;
    font-size: 1rem;
    padding: 1.1rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    outline: none;
    box-sizing: border-box;
    justify-content: center;
}
.post-filter-year-widget button.search-button svg {
    width: 16px;
    height: 16px;
}
.post-filter-year-widget .filter-row {
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-wrap: nowrap;
    gap: 13px;
    justify-content: center;
    align-items: center;
}
.post-filter-year-widget .filter-row label {
    color: #fff;
}
.post-filter-year-widget .filter-row .filter-group:last-child {
    display: none;
}
.post-filter-year-widget div#pagination-container {
    width: 100%;
}
.post-filter-year-widget button#search-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 400;
    font-size: 1rem;
    padding: 1.1rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    outline: none;
    box-sizing: border-box;
    justify-content: center;
    background-color: #009de0;
    color: #fff;
    border: none;
    cursor: pointer;
    height: 48px;
}
.post-filter-year-widget button#reset-btn {
    display: none;
    align-items: center;
    gap: 5px;
    font-weight: 400;
    font-size: 1rem;
    padding: 1.1rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    outline: none;
    box-sizing: border-box;
    justify-content: center;
    background-color: #F44336;
    color: #fff;
    border: none;
    cursor: pointer;
    height: 48px;
}
.post-filter-year-widget .filter-row .filter-group {
    display: flex;
    gap: 15px;
    align-items: center;
}
.post-filter-year-widget .post-row input[type="text"] {
    min-width: 250px;
}
.post-filter-year-widget .pagination-btn.active {
     background: linear-gradient(90deg, #35297b 0%, #9e1a23 100%);
     border: #fff;
}
/*ipad (tablet)*/
 @media (max-width: 1024px) {
.post-filter-year-widget .text-date.t-my {
    font-size: 16px;
}
.post-filter-year-widget .text-date.t-day {
    font-size: 50px;
}
.post-filter-year-widget .post-info_blog h3 {
    font-size: 16px;
    line-height: 1.6;
}
}
/*iphone5 (small smartphone)*/
 @media (max-width: 767px) {
    .post-filter-year-widget .post-row {
        flex-wrap: wrap;
        flex-direction: column;
        gap: 0.75rem;
    }
    .post-filter-year-widget .post-row input[type="text"],
    .post-filter-year-widget .post-row select,
    .post-filter-year-widget .post-row button {
        width: 100%;
    }
    .post-filter-year-widget {
        gap: 30px;
    }
    .post-filter-year-widget .post-item {
        flex: 0 0 100%;
    }
    .post-filter-year-widget .text-date.t-my {
        font-size: 16px;
    }
    .post-filter-year-widget .text-date.t-day {
        font-size: 60px;
    }
    .post-filter-year-widget .post-item .thaidate-info {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    .post-filter-year-widget .filter-row {
        flex-direction: column;
    }
    .post-filter-year-widget .filter-row .filter-group {
        flex-direction: column;
        align-items: self-start;
        width: 100%;
    }
    .post-filter-year-widget .filter-group button {
        width: 100%;
    }
    .post-filter-year-widget .filter-group {
        width: 100%;
    }
    .post-filter-year-widget .box-pw.activity-calendar-widget {
        gap: 20px;
    }
    .post-filter-year-widget .post-filter-form {
        padding: 20px;
    }
}
/*iphone5 (small smartphone)*/
 @media (max-width: 767px) {
    .post-filter-year-widget .post-row,
    .post-row {
        flex-wrap: wrap;
        flex-direction: column;
        gap: 0.75rem;
    }
    .post-filter-year-widget .post-row input[type="text"],
    .post-filter-year-widget .post-row select,
    .post-filter-year-widget .post-row button,
    .post-row input[type="text"],
    .post-row select,
    .post-row button {
        width: 100%;
    }
    .post-filter-year-widget {
        gap: 30px;
    }
    .post-filter-year-widget .post-item,
    .post-item {
        flex: 0 0 100%;
    }
    .post-filter-year-widget .text-date.t-my,
    .text-date.t-my {
        font-size: 16px;
    }
    .post-filter-year-widget .text-date.t-day,
    .text-date.t-day {
        font-size: 60px;
    }
    .post-filter-year-widget .post-item .thaidate-info,
    .post-item .thaidate-info {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    .post-filter-year-widget .filter-row,
    .filter-row {
        flex-direction: column;
    }
    .post-filter-year-widget .filter-row .filter-group,
    .filter-row .filter-group {
        flex-direction: column;
        align-items: self-start;
        width: 100%;
    }
    .post-filter-year-widget .filter-group button,
    .filter-group button {
        width: 100%;
    }
    .post-filter-year-widget .filter-group,
    .filter-group {
        width: 100%;
    }
    .post-filter-year-widget .box-pw.activity-calendar-widget,
    .box-pw.activity-calendar-widget {
        gap: 20px;
    }
    .post-filter-year-widget .post-filter-form,
    .post-filter-form {
        padding: 20px;
    }
}
