@import url('https://fonts.googleapis.com/css2?family=Sarabun:ital,wght@0,400;1,600&display=swap');

@font-face {
    font-family: 'JariyaThamX';
    font-weight: normal;
    font-style: normal;
    src: url('../fonts/DB JariyaTham X.woff2');
}

@font-face {
    font-family: 'JariyaThamXBd';
    font-weight: bold;
    font-style: normal;
    src: url('../fonts/DB JariyaTham X Bd.woff2');
}

body {
    background-color: #fff !important;
    font-family: "JariyaThamX" !important;
    font-size: 24px !important;
    font-weight: normal;
    font-style: normal;
    letter-spacing: normal;
    color: #000 !important;
    word-wrap: break-word;
}

:root {
    --swiper-navigation-color: #fff;
    --swiper-navigation-size: 35px !important;
    --peach: #FF9890;
    --radius: 18px;
}

input[type=text],
input[type=email],
input[type=password],
input[type=tel],
input[type=number],
input[type=search],
input[type=date],
textarea,
select {
    font-family: "Sarabun", sans-serif;
    font-size: 14px !important;
    line-height: 1.5;
    width: 100%;
    height: 45px;
    padding: 7px 12px;
    background-color: #fff;
    border: 1px solid #CECECE;
    border-radius: 7px;
    color: #000;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

input[type=text]:disabled,
input[type=email]:disabled,
input[type=password]:disabled,
input[type=tel]:disabled,
input[type=number]:disabled,
input[type=search]:disabled,
input[type=date]:disabled,
textarea:disabled,
select:disabled {
    background-color: #f5f5f5;
    color: #a0a0a0;
    border-color: #ddd;
    cursor: not-allowed;
    opacity: 1;
}


input:focus,
textarea:focus,
select:focus {
    border: 1px solid #CECECE !important;
    outline: none !important;
}

input.success {
    background: #d3fff6;
    border-color: #c3f7ec !important;
    box-shadow: none;
    transition: background 0.3s ease;
    margin-top: 0px !important;
}

input.error {
    background: #ffe2e3;
    border-color: #ffd3d5;
    box-shadow: none;
    transition: background 0.3s ease;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #CECECE;
    border-radius: 10px;
}

a {
    text-decoration: none !important;
}

.form-control{
    font-size: 24px !important;
}

.alert {
    padding: 5px !important;
    margin-top: 10px !important;
    margin-bottom: 10px !important;
}

.alert-info {
    background-color: rgba(33, 150, 243, 0.1) !important;
    color: #2196F3 !important;
}

.alert-success {
    background-color: rgba(76, 175, 80, 0.1) !important;
    color: #035932 !important;
}

.alert-warning {
    background-color: rgba(243, 148, 64, 0.1) !important;
    color: #f39440 !important;
}

.alert-danger {
    background-color: rgba(244, 67, 54, 0.1) !important;
    color: #F44336 !important;
}

.form-label {
    display: inline-block;
    max-width: 100%;
    margin-bottom: 10px;
    margin-top: 10px;
}

.form-wrap {
    width: 100%;
    max-width: 500px;
    margin: auto;
    margin-top: 15px;
    margin-bottom: 20px;
    padding: 15px 20px;
    border-radius: 32px;
    background-color: rgba(255, 255, 255, 0.7);
    border: 1px solid #FBB801;
    box-shadow: -3px -3px 8px rgba(255, 255, 255, 0.5), 3px -3px 8px rgba(255, 255, 255, 0.5), -3px 3px 8px rgba(255, 255, 255, 0.5), 3px 3px 8px rgba(0, 0, 0, 0.15);
}

.form-register-wrap {
    width: 100%;
    max-width: 1000px;
    margin: auto;
    margin-top: 15px;
    margin-bottom: 20px;
    padding: 15px 20px;
    border-radius: 32px;
    background-color: rgba(255, 255, 255, 0.7);
    border: 1px solid #FBB801;
    box-shadow: -3px -3px 8px rgba(255, 255, 255, 0.5), 3px -3px 8px rgba(255, 255, 255, 0.5), -3px 3px 8px rgba(255, 255, 255, 0.5), 3px 3px 8px rgba(0, 0, 0, 0.15);
}

.page_header_box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-top: 15px;
    margin-bottom: 15px;
}

.logo_site {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo_site img {
    width: 65px;
    height: 100%;
}

.page_header_box .icon img {
    width: 40px;
    height: 40px;
}

.page_header_box .text,
.page_header .text {
    font-weight: bold;
    font-style: normal;
    letter-spacing: normal;
    font-size: 32px;
    color: #000;
    transform: translateY(3px);
}

.menu-setting-sidebar {
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 140, 255, 0.12);
    padding: 10px;
    margin-top: 15px;
    margin-bottom: 15px;
    box-shadow: 0 0 20px rgba(0, 140, 255, 0.25);
    backdrop-filter: blur(10px);
}


.list-unstyled li {
    margin-bottom: 10px;
}

.list-item .title-text {
    font-weight: bold;
    font-size: 24px;
    color: #103b40;
}

.list-item .text {
    font-size: 24px;
    font-weight: normal;
    color: #103b40;
}

.list-item .icon-main img {
    width: 40px;
    height: 40px;
    margin-right: 10px;
}

.icon-main {
    font-size: 25px;
    color: #4A90E2;
}

.list-item .icon img {
    width: 30px;
    height: 30px;
    margin-right: 10px;
}

.acc_profile_avatar,
.product_img,
.upload_file_image {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px dashed #CECECE;
    padding: 10px;
    border-radius: 7px;
    margin-bottom: 10px;
}

.acc_profile_detail {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.acc_title {
    font-size: 24px;
    margin: 20px 0px;
    color: #fff;
}

.acc_item,
.acc_profile {
    display: flex;
    -webkit-box-align: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.acc_item_label {
    display: flex;
    flex-basis: 165px;
    margin-right: 5px;
}

.acc_item_value {
    width: 100%;
}

.acc_profile_avatar img {
    width: 130px;
    height: 130px;
    border-radius: 100%;
    object-fit: cover;
}

.upload_file_image img {
    width: 200px;
    height: 200px;
    object-fit: cover;
}

.acc_profile_name {
    font-size: 36px;
}

.imageInput {
    cursor: pointer;
}


.btn-back-login {
    display: flex !important;
    align-items: center !important;
    gap: 5px;
    background: #716056 !important;
    border: none !important;
    font-size: 20px !important;
    width: 170px;
}

.btn-select-img {
    width: 100%;
    max-width: 130px;
    height: 35px;
    margin-top: 10px;
    border-radius: 7px;
    background: #f6f7f9;
    font-size: 22px;
    border: none;
}

.btn-save {
    min-width: 150px;
    margin: 20px 0;
    padding: 10px 15px;
    height: 45px;
    border-radius: 25px;
    background: #052246;
    color: #FBB801;
    font-size: 24px;
    border: none;
}

.un-line {
    border-bottom: 2px dashed #FBB801;
}

/* --- toggle password --- */

.show_password,
.show_current_password,
.show_new_password,
.show_confirm_new_password {
    position: absolute;
    cursor: pointer;
    display: inline-block;
}

.hide_password,
.hide_current_password,
.hide_new_password,
.hide_confirm_new_password {
    position: absolute;
    cursor: pointer;
}

.toggle_password,
.toggle_current_password,
.toggle_new_password,
.toggle_confirm_new_password {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-right: 10px;
    margin-top: -22px;
    margin-bottom: 20px;
}

.forgot_password {
    text-align: right;
    margin-top: 35px;
}

.forgot_password .txt {
    color: #000 !important;
    font-weight: bold;
}

/* Social Login Styles */

.social-login-wrap {
    margin-top: 40px;
    padding: 0 10px;
}

.social-divider {
    position: relative;
    margin-bottom: 50px;
    border-bottom: 1px solid #959797;
}

.social-divider span {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: #9BD0B3;
    border-radius: 30px;
    padding: 10px 12px;
    color: #000000;
    font-size: 20px;
    font-weight: bold;
}

.social-buttons {
    display: flex;
    flex-direction: row;
    gap: 15px;
    justify-content: center;
}

.btn-social {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 7px 10px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
}

.icon-circle {
    width: 40px;
    height: 40px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        -2px -2px 5px rgba(255, 255, 255, 0.4),
        2px -2px 5px rgba(255, 255, 255, 0.4),
        -2px 2px 5px rgba(255, 255, 255, 0.4),
        2px 2px 5px rgba(0, 0, 0, 0.1);
}

.icon-circle img {
    width: 30px;
    height: 30px;
}

.btn-social span {
    color: #ffffff;
    font-size: 18px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- btn login --- */
.btn-login,
.btn-main {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #FBB801 !important;
    color: #000;
    font-size: 25px;
    font-weight: bold;
    width: 100%;
    height: 45px;
    padding: 17px 10px 10px 12px;
    border: none;
    border-radius: 20px;
    text-decoration: none !important;
    margin: 10px auto;
}

.register-page,
.login-page {
    text-align: center;
    margin-top: 20px;
}

.register-page .desc,
.login-page .desc {
    color: #FBB801 !important;
    font-weight: bold;
    margin-left: 7px;
}

.footer-container {
    width: 100%;
    color: #fff;
    background: linear-gradient(360deg, #021329 0%, #052246 100%);
    padding: 20px;
}

.footer-brand h3 {
    margin: 15px 0 0;
    font-size: 32px;
    font-weight: 700;
}

.footer-brand span {
    color: #fff;
    font-weight: 600;
    letter-spacing: 1px;
}

.footer-brand p {
    margin-top: 15px;
    color: rgba(255, 255, 255, .8);
    line-height: 1.5;
}

.footer-logo {
    width: 70px;
}

.footer-col h4 {
    font-size: 25px;
    font-weight: bold;
     color: #f7c600;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col a {
    color: rgba(255, 255, 255, .85);
    text-decoration: none;
    transition: .3s;
}

.footer-col a:hover {
    color: #f7c600;
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.footer-social a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: .3s;
}

.footer-social a:hover {
    background: #f7c600;
    color: #001b45;
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, .1);

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;

    color: rgba(255, 255, 255, .75);
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    color: rgba(255, 255, 255, .75);
    text-decoration: none;
}

/* ---- pagination ---- */

.pagination {
    gap: 6px;
}

.pagination .page-link {
    font-size: 25px;
    width: 40px;
    height: 40px;
    text-align: center;
    border-radius: 8px;
}

.pagination .active .page-link {
    background: #021329;
    border-color: #021329;
    color: #fff;
}

.pagination .disabled .page-link {
    pointer-events: none;
}


/* -------- home banner --------- */

.hero-section {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
            rgba(0, 0, 0, .75) 0%,
            rgba(0, 0, 0, .45) 40%,
            rgba(0, 0, 0, .15) 100%);
}

/* โค้งสีขาวด้านล่าง */

.hero-wave {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 140px;
    z-index: 1;
    pointer-events: none;
}

.hero-wave svg {
    width: 100%;
    height: 100%;
    display: block;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    padding-top: 100px;
    padding-bottom: 250px;
}

.hero-text {
    color: #fff;
}

.hero-text .headline {
    font-size: 60px;
    font-weight: 700;
    line-height: 1.15;
}

.hero-actions {
    display: flex;
    gap: 15px;
    margin-top: 40px;
}

.btn-primary {
    background: #f7c600;
    color: #000;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
}

.btn-outline {
    border: 1px solid rgba(255, 255, 255, .5);
    color: #fff;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
}

/* ==========================
   Stats
========================== */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    width: 100%;
    background: #00132a;
    border-radius: 12px;
    padding: 10px;
    border-bottom: 2px solid #fff;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 5px 10px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 10px;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.stat-content {
    display: flex;
    flex-direction: column;
}

.stat-icon {
    color: #f7c600;
    font-size: 42px;
    flex-shrink: 0;
}


.stat-title {
    color: #fff;
    font-size: 25px;
    font-weight: bold;
    opacity: .9;
    margin-bottom: 4px;
}

.stat-number {
    color: #fff;
    font-size: 35px;
    font-weight: bold;
    line-height: 1.2;
}

.stat-unit {
    color: #fff;
    opacity: .8;
    font-size: 25px;
    margin-top: 4px;
}


/* -------- นโยบาย ---------- */

.party-policy {
    margin: 0 auto;
    padding: 20px 0px;
}

.policy-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.policy-header h1 {
    margin: 0;
    font-size: 42px;
    line-height: 1.3;
    font-weight: bold;
    color: #10213d;
}

.view-all-policy {
    display: inline-flex;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;
    color: #1658a8;
    font-size: 25px;
    font-weight: 600;
    text-decoration: none;
}

.view-all-policy:hover {
    color: #f5a800;
}

.policy-container {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

.policy-item {
    padding: 20px 10px 10px;
    border: 1px solid #f5f5f5;
    border-radius: 9px;
    background: #fff;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
}

.policy-item:hover {
    transform: translateY(-4px);
    border-color: #f3b323;
    box-shadow: 0 10px 25px rgba(15, 35, 65, 0.1);
}

.policy-icon {
    height: 58px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.policy-icon img {
    width: 55px;
    height: 55px;
    object-fit: cover;
}

.policy-item h3 {
    margin: 0 0 7px;
    color: #10213d;
    font-size: 27px;
    line-height: 1.25;
    font-weight: 700;
    white-space: pre-line;
}

.policy-description {
    color: #606d80;
    font-size: 24px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.policy-description p {
    margin: 0;
}

.policy-link {
    display: inline-flex;
    align-items: flex-start;
    justify-content: center;
    margin-top: 15px;
    color: #f5a800;
    font-size: 22px;
    font-weight: 600;
    text-decoration: none;
}

.policy-link span {
    margin-left: 5px;
}

.policy-link:hover {
    color: #d58e00;
}

.policy-empty {
    padding: 40px;
    border: 1px solid #dfe5ec;
    border-radius: 9px;
    text-align: center;
    color: #6b7687;
}

/* ------------------------- */

/* -------- ญัตติ/กระทู้ ------- */
.motions-section {
    margin: 0 auto;
    padding: 20px 0px;
}

.motions-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.motions-header h1 {
    margin: 0;
    font-size: 42px;
    line-height: 1.3;
    font-weight: bold;
    color: #10213d;
}

.motions-view-all {
    display: inline-flex;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;
    color: #1658a8;
    font-size: 25px;
    font-weight: 600;
    text-decoration: none;
}

.motions-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 20px;
}

.motion-card {
    overflow: hidden;
    min-width: 0;
    border: 1px solid #f5f5f5;
    border-radius: 10px;
    background: #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
}

.motion-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(15, 35, 65, 0.1);
}

.motion-image {
    display: block;
    width: 100%;
    height: 160px;
    overflow: hidden;
    background: #eef2f6;
}

.motion-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.motion-card:hover .motion-image img {
    transform: scale(1.04);
}

.motion-content {
    display: flex;
    min-height: 245px;
    padding: 18px;
    flex-direction: column;
}

.motion-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 15px;
}

.motion-meta time {
    color: #69768a;
    font-size: 18px;
    font-weight: bold;
}

.motion-type {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 5px;
    font-size: 18px;
    font-weight: 600;
}

.motion-type.type-motion {
    color: #1a748b;
    background: #d1eef4;
}

.motion-type.type-thread {
    color: #ff9800;
    background: #fff3e0;
}

.motion-content h3 {
    margin: 0 0 7px;
    font-size: 22px;
    line-height: 1.5;
    font-weight: 700;
}

.motion-content h3 a {
    color: #10213d;
    text-decoration: none;
}

.motion-description {
    display: -webkit-box;
    overflow: hidden;
    margin: 0 0 6px;
    color: #647084;
    font-size: 20px;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.motion-author {
    margin: auto 0 15px;
    color: #69768a;
    font-size: 20px;
}

.motion-read-more {
    display: inline-flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 7px;
    font-size: 22px;
    font-weight: 600;
    text-decoration: none;
}

.motion-read-more.type-motion {
    color: #1a748b;
}

.motion-read-more.type-thread {
    color: #ff9800;
}

.motions-empty {
    padding: 45px;
    border: 1px solid #dce3ec;
    border-radius: 10px;
    color: #69768a;
    text-align: center;
}

/* ------------------------- */

/* -------- ร่างกฏหมาย ------- */
.draft-legislation {
    margin: 0 auto;
    padding: 20px 0px;
}

.legislation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.legislation-header h1 {
    margin: 0;
    font-size: 42px;
    line-height: 1.3;
    font-weight: bold;
    color: #10213d;
}

.view-all {
    display: inline-flex;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;
    color: #1658a8;
    font-size: 25px;
    font-weight: 600;
    text-decoration: none;
}

.legislation-box {
    overflow: hidden;
    border: 1px solid #dce5ef;
    border-radius: 12px;
    background: #fff;
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
}

.legislation-toolbar {
    display: flex;
    align-items: center;
    gap: 25px;
    padding: 15px;
    background: #031d3c;
}

.law-search {
    position: relative;
    width: 230px;
    flex-shrink: 0;
}

.law-search input {
    width: 100%;
    height: 42px;
    padding: 0 42px 0 14px;
    color: #fff;
    border: 1px solid #6d8097;
    border-radius: 6px;
    outline: none;
    background: #071b35;
}

.law-search input::placeholder {
    color: #c2cedd;
}

.law-search i {
    position: absolute;
    top: 50%;
    right: 13px;
    color: #fff;
    font-size: 20px;
    transform: translateY(-50%);
}

.status-filters {
    display: flex;
    gap: 12px;
    overflow-x: auto;
}

.status-filter {
    font-size: 22px;
    width: max-content;
    height: 42px;
    padding: 0 20px;
    color: #fff;
    white-space: nowrap;
    border: 1px solid #38506e;
    border-radius: 6px;
    background: #071b35;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.status-filter:hover,
.status-filter.active {
    color: #071b35;
    border-color: var(--status-color, #f5b400);
    background: var(--status-color, #f5b400);
}

.legislation-content {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
}

.law-categories {
    min-height: 450px;
    padding: 14px;
    background: linear-gradient(180deg, #062448, #031c39);
}

.category-filter {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 14px;
    color: #fff;
    text-align: left;
    border: 0;
    border-radius: 6px;
    background: transparent;
    cursor: pointer;
}

.category-filter i {
    color: #f6b900;
    font-size: 21px;
}

.category-filter:hover,
.category-filter.active {
    color: #f6b900;
    background: rgba(255, 255, 255, 0.09);
}

.law-table-wrapper {
    overflow-x: auto;
    overflow-y: auto;
    max-height: 500px;
}

.law-table {
    width: 100%;
    border-collapse: collapse;
}

.law-table thead th {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #f9fbfd;
}

.law-table th,
.law-table td {
    padding: 7px 10px;
    border-bottom: 1px solid #e5eaf0;
    vertical-align: middle;
}

.law-table th {
    color: #182b45;
    font-size: 20px;
    text-align: center;
    background: #f9fbfd;
}

.law-table .law-title-column {
    min-width: 200px;
    text-align: left;
}

.law-title .title {
    color: #0d203e;
    font-size: 24px;
    font-weight: bold;
}

.law-title small {
    font-size: 20px;
    color: #718096;
    line-height: 1.2;
}

.document-link {
    color: #10284a;
    white-space: nowrap;
    text-decoration: none;
}

.document-link i {
    margin-right: 5px;
    font-size: 20px;
}

.flow-progress {
    display: inline-block;
    width: 43px;
    height: 8px;
    border-radius: 10px;
    background: #d5dae1;
}

.flow-progress.completed {
    background: #23bf68;
}

.flow-progress.current {
    background: #f5b516;
}

.flow-progress.pending {
    background: #d5dae1;
}

.law-status {
    display: inline-block;
    padding: 5px 10px;
    color: var(--law-status-color);
    white-space: nowrap;
    border: 1px solid var(--law-status-color);
    border-radius: 20px;
    font-size: 12px;
}

.empty-law {
    padding: 40px;
    color: #718096;
    text-align: center;
}

.status-legend {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 20px;
    padding: 15px;
    background: #031d3c;
    border-top: 1px solid #f9fbfd;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 20px;
    white-space: nowrap;
    flex-shrink: 0;
}

.legend-item .dot {
    display: inline-block;
    width: 15px;
    height: 15px;
    border-radius: 50%;
}

/* ------------------------- */

/* ------------------------- */
.law-card {
    background: #fff;
    border-radius: 18px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: 0 3px 18px rgba(0, 0, 0, .08);
}

.law-header {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.law-image {
    flex: 0 0 300px;
}

.law-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 14px;
}

.law-content {
    /* flex: 1 1 300px; */
    flex: 1 1;
}

.law-status-badge {
    display: inline-block;
    padding: 5px 14px 5px 14px;
    border-radius: 50px;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    height: 35px;
}

.law-title {
    font-size: 34px;
    font-weight: 700;
    margin-bottom: 12px;
}

.law-description {
    color: #64748b;
    line-height: 1.8;
    font-size: 25px;
}

.law-progress {
    flex: 0 0 280px;
    text-align: center;
    padding: 20px;
    background-color: #f7f7f9;
    border-radius: 10px;
}

.btn-follow-progress {
    width: 100%;
    padding: 5px 10px;
    background-color: #ffffff;
    color: #00132a;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}


.law-budget {
    flex: 0 0 280px;
    text-align: left;
    padding: 20px;
    background-color: #f7f7f9;
    border-radius: 10px;
}

.progress-circle {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    margin: 15px auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.progress-circle span {
    width: 70px;
    height: 70px;
    background: #f7f7f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #000;
    font-size: 30px;
}

.budget-number {
    font-size: 48px;
    font-weight: 700;
    color: #f7b500;
    line-height: 1;
}

.budget-unit {
    font-size: 25px;
    font-weight: bold;
    margin-top: 5px;
    margin-bottom: 15px;
    color: #000;
}

.budget-detail {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
}

.budget-link {
    margin-top: 15px;
    display: inline-block;
    color: #1658a8;
    font-weight: bold;
    text-decoration: none;
}

.budget-link:hover {
    text-decoration: underline;
}

/* =========================
   TIMELINE
========================= */

.law-timeline {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 40px;
}

.timeline-step {
    flex: 1;
    position: relative;
    text-align: center;
}

/* เส้นเชื่อม */

.timeline-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 21px;
    left: calc(50% + 30px);
    width: calc(100% - 60px);
    height: 2px;
    background: #e5e7eb;
}

/* จุดเชื่อม */

.timeline-step:not(:last-child)::before {
    content: '';
    position: absolute;
    top: 17px;
    right: -4px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #cbd5e1;
    z-index: 2;
}

/* วงกลม */

.timeline-circle {
    width: 42px;
    height: 42px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #cbd5e1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    font-size: 30px;
    font-weight: 700;
    position: relative;
    z-index: 3;
}

.timeline-circle.done {
    border-color: #22c55e;
    color: #22c55e;
}

.timeline-circle.pending {
    border-color: #cbd5e1;
    color: #94a3b8;
}

.timeline-circle.current {
    background: #fff;
}

/* ข้อความ */

.timeline-content {
    text-align: center;
}

.timeline-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    color: #111827;
}

.timeline-status {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    margin-top: 10px;
}

/* สีสถานะ */

.timeline-circle.done+.timeline-content .timeline-status {
    color: #22c55e;
}

.timeline-circle.pending+.timeline-content .timeline-status {
    color: #64748b;
}


/* -----ข่าวสาร ------- */

.main-content-wrapper {
    display: grid;
    grid-template-columns: minmax(540px, 1.15fr) minmax(500px, 1fr);
    gap: 35px;
    width: 100%;
    color: #0f172a;
    margin: 0 auto;
    padding: 20px 0px;
}

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.news-header h1 {
    margin: 0;
    font-size: 42px;
    line-height: 1.3;
    font-weight: bold;
    color: #10213d;
}

/* ---------- News ---------- */

.news-layout {
    display: grid;
    grid-template-columns: minmax(280px, 1.15fr) minmax(280px, 1fr);
    gap: 15px;
}

.news-main {
    position: relative;
    min-height: 285px;
    overflow: hidden;
    border-radius: 12px;
    background: #0f172a;
}

.news-main::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top,
            rgba(4, 18, 38, .95) 0%,
            rgba(4, 18, 38, .55) 48%,
            rgba(4, 18, 38, .08) 100%);
}

.news-main>img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}

.news-main-content {
    position: absolute;
    z-index: 1;
    left: 10px;
    top: 10px;
    color: #fff;
}

.news-badge {
    display: inline-block;
    margin-bottom: 50px;
    padding: 5px 12px 10px;
    border-radius: 6px;
    background: #0f172a;
    color: #facc15;
    font-size: 20px;
    font-weight: 700;
    height: 35px;
}

.news-main-title {
    margin: 0 0 12px;
    font-size: 25px;
    line-height: 1.55;
}

.news-date {
    font-size: 20px;
    font-weight: 500;
    opacity: .9;
}

.news-list {
    display: flex;
    flex-direction: column;
}

.news-item {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 15px;
    align-items: start;
}

.news-item:last-child {
    margin-bottom: 0;
}

.news-item img {
    width: 120px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}

.news-item-category {
    display: inline-block;
    margin-bottom: 7px;
    padding: 3px 7px;
    border-radius: 5px;
    background: #dcfce7;
    color: #15803d;
    font-size: 18px;
    font-weight: 700;
    height: 25px;
}

.news-item:nth-child(even) .news-item-category {
    background: #dbeafe;
    color: #2563eb;
}

.news-item-title a {
    display: block;
    color: #172033 !important;
    font-size: 20px;
    line-height: 1.5;
}

.news-item-date {
    color: #7c879b;
    font-size: 18px;
}

/* ---------- Events ---------- */

.events-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.events-header h1 {
    margin: 0;
    font-size: 42px;
    line-height: 1.3;
    font-weight: bold;
    color: #10213d;
}

.events-header .section-heading {
    margin-bottom: 0;
}

.events-link {
    flex-shrink: 0;
    color: #172033;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.events-link span {
    margin-left: 8px;
    color: #2563eb;
    font-size: 18px;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
}

.event-item {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 15px;
    min-height: 145px;
    padding: 22px 20px;
    border-bottom: 1px solid #edf1f6;
}

.event-item:nth-child(odd) {
    border-right: 1px solid #edf1f6;
}

.date-box {
    display: flex;
    width: 48px;
    height: 65px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2e8f0;
    border-radius: 7px;
    background: #fff;
    box-shadow: 0 2px 5px rgba(15, 23, 42, .04);
}

.date-box strong {
    color: #111827;
    font-size: 35px;
    line-height: 1;
    margin-top: 15px;
}

.date-box span {
    margin-top: -5px;
    color: #64748b;
    font-size: 20px;
    font-weight: 600;
}

.event-name {
    display: block;
    color: #172033;
    font-size: 25px;
    line-height: 1.55;
}

.event-details {
    margin-top: 12px;
    color: #64748b;
    font-size: 25px;
}

.event-detail {
    display: flex;
    gap: 9px;
    align-items: center;
    margin-top: 7px;
}

.event-icon {
    display: inline-flex;
    width: 19px;
    color: #7592c5;
    font-size: 15px;
    justify-content: center;
}

/* ---- support --- */

/* Section */
.support-section {
    background: #001127;
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, .08);
    border-bottom: 2px solid rgba(255, 255, 255, .08);
}

/* Layout */
.support-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

/* Left */
.support-text {
    flex: 1;
    color: #fff;
}

.support-text h2 {
    font-size: 44px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
}

.support-text p {
    font-size: 30px;
    color: rgba(255, 255, 255, .85);
    max-width: 650px;
    margin-bottom: 25px;
}

/* Buttons */
.support-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.support-buttons .btn-support-party {
    background-color: #ffcc00;
    color: #000;
    font-size: 25px;
    font-weight: bold;
}

.support-buttons .btn-outline {
    background-color: transparent;
    border-color: #ffffff;
    color: #ffffff;
    font-size: 22px;
    font-weight: bold;
}


/* Right Images */
.support-images {
    width: 650px;
    display: flex;
    gap: 15px;
}

.image-column {
    width: 260px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.small-image {
    height: 130px;
    overflow: hidden;
    border-radius: 12px;
}

.large-image {
    height: 275px;
    overflow: hidden;
    border-radius: 12px;
}

.support-images img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ==========================
   Newsletter
========================== */

.newsletter-section {
    background: #001127;
    position: relative;
    overflow: hidden;
    border-bottom: 2px solid rgba(255, 255, 255, .08);
}

.newsletter-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

/* Left */

.newsletter-left {
    flex: 1;
    max-width: 600px;
}

.newsletter-left h2 {
    color: #fff;
    font-size: 44px;
    font-weight: 700;
    margin: 20px 0 8px;
    line-height: 1.2;
}

.newsletter-left p {
    color: rgba(255, 255, 255, .8);
    margin: 0 0 18px;
    font-size: 30px;
}

/* Form */

.newsletter-form {
    display: flex;
    gap: 12px;
    max-width: 650px;
}

.newsletter-form button {
    width: 170px;
    height: 46px;
    border: none;
    border-radius: 6px;
    background: #f7c600;
    color: #111;
    font-weight: 700;
    cursor: pointer;
}

/* Right */

.newsletter-right {
    width: 260px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.newsletter-right img {
    max-height: 240px;
    width: auto;
    display: block;
}

/* ------ news card ----- */

/* Grid */
#recent-news {
    display: flex;
    flex-wrap: wrap;
    margin: -10px;
}

#recent-news>div {
    padding: 10px;
}

/* Card */
.custom-card {
    background: #fff;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, .08);
    transition: all .3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 12px;
}

.custom-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, .15);
}

/* Image */
.custom-thumb {
    display: block;
    overflow: hidden;
    height: 200px;
}

.custom-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    transition: transform .4s ease;
}

.custom-card:hover .custom-thumb img {
    transform: scale(1.08);
}

/* Content */
.custom-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.custom-title {
    font-size: 25px;
    font-weight: 700;
    line-height: 1.5;
    margin-top: 6px;
    margin-bottom: 6px;
}

.custom-title a {
    color: #222;
    text-decoration: none;
}

.custom-title a:hover {
    color: #009966;
}

.custom-desc {
    color: #666;
    font-size: 20px;
    line-height: 1.2;
    flex-grow: 1;

    /* โค้ดสำหรับตัดข้อความให้เหลือ 2 บรรทัด */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Button */
.custom-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 18px;
    background: #FBB801;
    color: #fff;
    border-radius: 25px;
    text-decoration: none;
    transition: 0.3s;
    width: 100%;
    height: 45px;
    text-align: center;
    font-weight: 600;
}

.custom-btn:hover {
    background: #E6A500;
    color: #fff;
    transform: translateY(-2px);
}


/* --- โครงสร้างรายละเอียดข่าว, บทความ--- */

.page_content {
    padding: 20px 0px;
}

.page-thumbnail {
    padding: 15px;
    border-radius: 30px;
    background-color: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(209, 213, 219, 0.3);
    box-shadow:
        -3px -3px 8px rgba(255, 255, 255, 0.5),
        3px -3px 8px rgba(255, 255, 255, 0.5),
        -3px 3px 8px rgba(255, 255, 255, 0.5),
        3px 3px 8px rgba(0, 0, 0, 0.15);
}

.page-thumbnail img {
    width: 100%;
    height: 100%;
    border-radius: 16px;
}

.page-title {
    color: rgb(82, 82, 82);
    font-weight: bold;
    font-size: 40px;
    font-weight: normal;
    margin-top: 15px;
}

.page-description {
    font-size: 22px;
    padding: 15px;
    border-radius: 16px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    margin: 15px 0px;
    background-color: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(209, 213, 219, 0.3);
    box-shadow: -3px -3px 8px rgba(255, 255, 255, 0.5), 3px -3px 8px rgba(255, 255, 255, 0.5), -3px 3px 8px rgba(255, 255, 255, 0.5), 3px 3px 8px rgba(0, 0, 0, 0.15);
}

.page-content {
    font-size: 22px;
    padding: 15px;
    border-radius: 16px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 15px;
    background-color: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(209, 213, 219, 0.3);
    box-shadow: -3px -3px 8px rgba(255, 255, 255, 0.5), 3px -3px 8px rgba(255, 255, 255, 0.5), -3px 3px 8px rgba(255, 255, 255, 0.5), 3px 3px 8px rgba(0, 0, 0, 0.15);
}

.read-tags .postTag {
    display: inline-block;
    font-size: 22px;
    text-decoration: none;
    padding: 1px;
    border-bottom: 1px solid #103b40;
    margin: 5px;
    font-weight: 500;
    color: black;
}

.wow_content {
    padding: 15px;
    border-radius: 16px;
    background: #f7f7f9;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.search-blog {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

}

.popular-blogs {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    padding: 0 0 10px;
    margin: 15px 0px;
    border-bottom: 1px solid #eee;
}

.wo_page_hd_text {
    font-weight: bold;
    font-size: 22px;
}

.wo_page_hd .icon {
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #021329;
    color: #FBB801;
    cursor: pointer;
}

.search-blog-input,
.search-news-input {
    border-radius: 20px !important;
    min-width: 320px;
}

.search-products {
    margin: 20px auto;
    display: flex;
    justify-content: center;
    width: 100%;
}

.search-products-input {
    border-radius: 25px !important;
    border: 2px solid #CECECE !important;
    min-width: 380px;
}

.popular-articles {
    padding: 0px;
}

.popular-articles li {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    list-style: none;
}

.popular-articles li .article-thumbnail {
    width: 65px;
    height: 65px;
    border-radius: 10px;
    margin-bottom: 10px;
}

.article-thumbnail img {
    width: 100%;
    height: 100%;
    position: relative;
    margin-right: 15px;
    border-radius: 10px;
    object-fit: cover;
}

.popular-articles li .article-title {
    color: #103b40;
    text-decoration: none;
    width: 200px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.search-result:empty {
    padding: 0;
    background: transparent;
    box-shadow: none;
}

.search-result {
    position: absolute;
    z-index: 9;
    margin: 0;
    background: #F1F1E7;
    padding: 10px;
    box-shadow: 0 3px 10px -2px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    width: 100%;
    max-width: 320px;
}

.wow_main_blogs {
    background-color: #fff;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
    border-radius: 10px;
    margin-bottom: 15px;
    padding: 15px;
    transition: .3s ease;
}

.wow_main_blogs .thumbnail {
    display: block;
    position: relative;
    padding-bottom: 65%;
}

.wow_main_blogs .thumbnail img {
    width: 100%;
    height: 100%;
    border-radius: 9px;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    object-fit: cover;
}

.wow_main_blogs .title {
    font-weight: bold;
    font-size: 24px;
    color: #103b40;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    margin-top: 10px;
}

/*Empty State*/

.empty_state {
    margin: 25px 0;
    font-size: 24px;
    color: #fff;
    text-align: center;
}

.empty_state svg {
    display: block;
    margin: 0 auto 15px;
    width: 100px;
    height: 100px;
    color: #ffffff;
    background-color: #716056;
    border-radius: 100%;
    padding: 5px;
    opacity: 0.7;
    box-shadow: rgba(0, 0, 0, 0.4) 0px 2px 4px, rgba(0, 0, 0, 0.3) 0px 7px 13px -3px, rgba(0, 0, 0, 0.2) 0px -3px 0px inset;
}

/* Card Style */
.policy-card {
    background: #f7f7f9;
    border-radius: 20px;
    padding: 15px;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.policy-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: rgba(255, 102, 51, 0.2);
}

.policy-icon-wrapper {
    width: 70px;
    height: 70px;
    margin-bottom: 25px;
    border-radius: 100%;
    background: linear-gradient(145deg, #ffffff, #f8f8f8);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.05), 5px 5px 15px rgba(0, 0, 0, 0.05);
}

.policy-icon-wrapper img {
    width: 60%;
    height: 60%;
    object-fit: contain;
}

/* Typography */
.policy-card h3 {
    font-size: 30px;
    font-weight: bold;
    color: #1a1a1a;
}

.policy-card p {
    color: #777;
    font-size: 25px;
}

/* Elegant Footer */
.card-footer {
    text-align: end;
}

.custom-date {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    color: #ff6633;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(255, 102, 51, 0.08);
    padding: 6px 14px;
    border-radius: 50px;
}


.event-title {
    font-size: 25px !important;
    color: #1a1a1a !important;
    border-left: 4px solid #ff6633;
    padding-left: 15px;
}

.event-desc {
    color: #444;
    font-size: 15px;
    margin-bottom: 10px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 10px;
    border-left: 3px solid #ddd;
}


.event-meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 15px;
    background: #fff6f2;
    border-radius: 12px;
    border: 1px solid rgba(255, 102, 51, 0.2);
    margin-bottom: 7px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    color: #333;
}

.meta-item strong {
    color: #ff6633;
    margin-right: 5px;
}

.badge-custom {
    display: inline-block;
    padding: 6px 20px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    color: #fff;
    border-radius: 50px;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-back-custom {
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    background: #fff;
    border-radius: 50px;
    color: #333;
    text-decoration: none;
    font-size: 20px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.btn-back-custom:hover {
    background: #f8f9fa;
    transform: translateX(-5px);
    color: #000;
}

.motion-content-body img {
    max-width: 100%;
    border-radius: 16px;
    margin: 25px 0;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* ------ รายละเอียดร่างกกหมาย --------- */

/* ลบสไตล์เดิมของปุ่มออกให้หมด */
.faq-btn {
    width: 100%;
    background: #ffffff;
    border: none;
    border-bottom: 1px solid #f1f5f9;
    padding: 20px 15px;
    font-size: 25px;
    font-weight: 600;
    color: #1e293b;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-btn:hover {
    background-color: #f8fafc;
    color: #f59e0b;
    /* ใช้สีหลักของพรรค */
}

.faq-content {
    padding: 20px 15px;
    background-color: #fcfcfc;
    color: #475569;
    line-height: 1.8;
    font-size: 24px;
    border-bottom: 1px solid #f1f5f9;
}


.section-box {
    border: 1px solid #dee2e6;
    padding: 20px;
    border-radius: 8px;
    background: #f9f9f9;
}

.section-title {
    color: #002d5b;
    border-bottom: 2px solid #002d5b;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.register_form .row-flex {
    display: flex;
    gap: 20px;
}

.register_form .acc_item {
    flex: 1;
    margin-bottom: 15px;
}

.register_form input,
.register_form textarea {
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
}


/* Responsive */
@media (max-width: 768px) {
    .news-thumb {
        height: 180px;
    }

    .news-title {
        font-size: 18px;
    }
}

/* Responsive */

@media(max-width:1200px) {

    .law-timeline {
        overflow-x: auto;
        gap: 30px;
        padding-bottom: 10px;
    }

    .timeline-step {
        min-width: 160px;
    }

    .newsletter-content {
        flex-direction: column;
        text-align: center;
    }

    .newsletter-left {
        max-width: 100%;
        width: 100%;
    }

    .newsletter-form {
        max-width: 700px;
        width: 100%;
        margin: 0 auto;
    }

    .newsletter-right {
        width: auto;
    }

    .newsletter-right img {
        max-height: 220px;
    }

}


/* --- Responsive สำหรับจอมือถือ --- */

@media (max-width: 1280px) {}

@media (max-width: 1200px) {
    .motions-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1100px) {
    .policy-container {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .main-content-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 991px) {
    .legislation-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .law-search {
        width: 100%;
    }

    .legislation-content {
        grid-template-columns: 1fr;
    }

    .law-categories {
        display: flex;
        min-height: auto;
        overflow-x: auto;
    }

    .category-filter {
        width: auto;
        min-width: 150px;
    }

    .law-image,
    .law-content,
    .law-progress,
    .law-budget {
        flex: 0 0 100%
    }

    .support-content {
        flex-direction: column;
    }

    .support-images {
        width: 100%;
    }

    .support-text h2 {
        font-size: 35px;
    }

    .support-text p {
        font-size: 25px;
    }

    /* --- home banner --- */

    .hero-section {
        min-height: auto;
    }

    .hero-content {
        max-width: 100%;
        padding-top: 120px;
        padding-bottom: 40px;
        text-align: center;
    }

    .hero-actions {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-stats {
        position: relative;
        left: auto;
        bottom: auto;
        transform: none;
        margin-top: 30px;
        grid-template-columns: repeat(2, 1fr);
    }

}

@media (max-width: 768px) {

    html,
    body {
        overflow-y: scroll;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    html::-webkit-scrollbar,
    body::-webkit-scrollbar {
        width: 0px;
        height: 0px;
        display: none;
        background: transparent;
    }

    .status-legend::-webkit-scrollbar,
    .status-filters::-webkit-scrollbar {
        display: none;
    }

    .newsletter-left h2 {
        font-size: 32px;
    }

    .newsletter-left p {
        font-size: 18px;
        line-height: 1.6;
    }

    .newsletter-form {
        flex-direction: column;
        max-width: 100%;
    }

    .newsletter-form input,
    .newsletter-form button {
        width: 100%;
    }

    .newsletter-form button {
        height: 50px;
    }

    .newsletter-right img {
        max-height: 180px;
    }

    /* --- home banner --- */

    .hero-text .headline {
        font-size: 35px;
    }

    .stat-icon {
        font-size: 35px;
    }

}

@media (max-width: 767px) {
    .party-policy {
        padding: 30px 15px;
    }

    .policy-header h1,
    .motions-header h1,
    .legislation-header h1,
    .news-header h1,
    .events-header h1 {
        font-size: 27px;
    }

    .view-all-policy,
    .motions-view-all,
    .view-all {
        font-size: 20px;
    }

    .policy-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .motions-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .support-images {
        flex-direction: column;
    }

    .image-column {
        width: 100%;
        flex-direction: row;
    }

    .small-image {
        flex: 1;
        height: 120px;
    }

    .large-image {
        height: 220px;
    }
}

@media (max-width: 650px) {

    .news-layout,
    .events-grid {
        grid-template-columns: 1fr;
    }

    .news-item {
        grid-template-columns: 115px 1fr;
    }

    .event-item,
    .event-item:nth-child(odd) {
        border-right: 0;
    }
}


@media (max-width: 500px) {
    .motions-grid {
        grid-template-columns: 1fr;
    }

    .motion-image {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .policy-header {
        align-items: flex-start;
        gap: 10px;
    }

    .policy-container {
        grid-template-columns: 1fr;
    }
}