@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
     margin: 0;
     padding: 0;
     box-sizing: border-box;
     font-family: 'Noto Sans Thai Looped', "Poppins", sans-serif;

}

/* body {
     background-image: url("../images/banner-01.jpg");
     background-repeat: no-repeat;
     background-size: cover;
     background-attachment: scroll;
     margin-top: 150px !important;
} */
body {
     margin: 0;
     overflow-x: hidden;
}

body::before {
     content: "";
     position: fixed;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     background: url("../images/banner-01.webp") no-repeat center center;
     background-size: cover;
     z-index: -1;
}

.blog-title {
     width: 100%;
     margin: 0;
     text-align: center;
}

.page-container {
     position: fixed;
     display: flex;
     justify-content: space-between;
     top: 0;
     left: 0;
     padding: 0.5rem 1rem;
     width: 100%;
     z-index: 1000;
     background: #ffffffc1;
     backdrop-filter: blur(8px);
     box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.blog-title h3 {
     /* font-family: "DynaPuff", system-ui; */
     font-optical-sizing: auto;
     font-style: normal;
     font-variation-settings: "wdth" 100;
     /* font-size: 50px; */
     font-weight: 500;
     /* color: #F4A460; */
     color: #262262;
}

.icon-head {
     list-style: none;
     display: flex;
     margin: 0;
     padding: 0;
     align-items: center;
     border-radius: 20px 20px;
     overflow: visible;
}

.icon-head li {
     position: relative;
     overflow: visible;
}

.icon-head li a {
     font-weight: 600;
     text-decoration: none;
     padding: 8px 16px;
     display: block;
     color: #262262;
     border-radius: 20px;
     transition: all 0.3s ease;
}

.icon-head li a:hover {
     background: linear-gradient(135deg, #4facfeda, #00f1fee9);
     color: #fff;
     box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
     transform: translateY(-2px);
}

ul li a {
     display: block;
     text-align: center;
     text-decoration: none;
}

.hamburger-menu {
     display: none;
     background: none;
     border: none;
     cursor: pointer;
     padding: 8px;
     z-index: 1001;
}

.hamburger-menu svg {
     stroke: #262262;
}

.logo {
     display: flex;
     align-items: center;
}

.logo img {
     margin-right: 1rem;
     max-height: 60px;
     height: clamp(40px, 10vw, 150px);

}

.icon-home a {

     font-size: 2rem;
     font-size: clamp(1.2rem, 2vw + 1rem, 2rem);
     white-space: nowrap;
     color: #262262;
     text-shadow: 2px 1px 5px rgba(0, 0, 0, 0.34);
     text-decoration: none;
     font-weight: bold;
     text-align: center;
}


.cart-container {
     position: relative;
     /* ให้ popup อิงตำแหน่งจาก container นี้ */
     display: inline-block;
}


/* Total price ค้างด้านล่าง */
.total-price {
     margin-top: auto;
     padding-top: 10px;
     border-top: 1px solid #ddd;
     font-weight: bold;
     text-align: right;
     display: flex;
     margin-bottom: 0;
     flex-direction: column;
     align-items: flex-end;
}

.btn-confirm {
     padding: 12px 24px;
     font-size: 16px;
     font-weight: bold;
     color: #fff;
     background-color: #007BFF;
     border: none;
     border-radius: 8px;
     cursor: pointer;
     transition: 0.3s ease;
}

.btn-confirm:hover {
     background-color: #0056b3;
}

.info-container {
     position: relative;
     display: inline-block;
}

.info-btn {
     cursor: pointer;
     font-weight: 600;
     color: #0077ff;
     padding: 6px 12px;
}


.info-popup {
     position: absolute;
     top: 120%;
     left: 0;
     background: rgb(255, 255, 255);
     border-radius: 8px;
     box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
     padding: 10px;

     gap: 8px;
     min-width: 220px;
     opacity: 0;
     visibility: hidden;
     transform: translateY(10px);
     transition: all 0.3s ease;
     z-index: 999;
     flex-direction: column;

     text-align: left;

     /* ทำให้เริ่มซ่อนอยู่ */
     opacity: 0;
     visibility: hidden;
     transform: translateY(10px);
     transition: all 0.3s ease;
     z-index: 999;
}

.info-popup a {
     text-decoration: none;
     color: #1c1b1b;
     font-size: 14px;
     padding: 5px 8px;
     border-radius: 6px;
     transition: background 0.2s;
}

.info-popup a:hover {
     background: #73b3bc;
}

/* เวลา hover ที่ info-container → popup โผล่ */
.info-container:hover .info-popup {
     opacity: 1;
     visibility: visible;
     transform: translateY(0);
}


.cart-ticket .btn-confirm {
     background: none;
     color: #404040;
     font-weight: 500;
     text-decoration: underline;
     text-underline-position: auto;
}

/* ป้ายประเภทตั๋ว */
.ticket-type {
     background: #fff;
     color: #3c5672;
     padding: 0;
     border-radius: 6px;
     font-size: 12px;
     font-weight: bold;
}

.cart-container {
     position: relative;
     /* ให้ popup อิงตำแหน่งจาก container นี้ */
     display: inline-block;
}


/* Total price ค้างด้านล่าง */
.total-price {
     margin-top: auto;
     padding-top: 10px;
     border-top: 1px solid #ddd;
     font-weight: 600;
     text-align: right;
     display: flex;
     margin-bottom: 0;
     flex-direction: column;
     align-items: flex-end;
}

.cart-popup::-webkit-scrollbar {
     width: 1px;

}

.cart-popup::-webkit-scrollbar-track {
     background: transparent;

}

.cart-popup::-webkit-scrollbar-thumb {
     background-color: rgba(0, 0, 0, 0.083);
     border-radius: 10px;
     border: 1px solid transparent;
}

.hidden {
     display: none;
}

.cart-item {
     border-bottom: 1px solid #eee;
     padding: 8px 0;
     margin: 0;
     text-align: center;
}

.cart-header {
     display: flex;
     justify-content: space-between;
     align-items: center;
}

/* ปุ่มลบ */
.remove-btn {
     background: none;
     border: none;
     color: #262262;
     font-size: 18px;
     font-weight: bold;
     cursor: pointer;
     transition: 0.2s;
}

.remove-btn:hover {
     color: #f88282;
}

/* รายละเอียด */
.route {
     font-size: 15px;
     font-weight: bold;
     margin: 8px 0 3px;
}

.datetime,
.passengers {
     margin: 2px 0;
     font-size: 13px;
}

.price {
     margin: 8px 0 0 0;
     text-align: right;
     font-size: 15px;
     font-weight: 600;

}

.footer {
     width: 80%;
     margin: 0 auto;
     text-align: center;
     padding: 1rem 0;
     color: white;
     font-size: 14px;
}


.contactlogo {
     text-align: center;
     margin-top: 20px;
     padding-bottom: 30px;
}

.contactlogo img {
     max-width: 40px;
     padding-right: 15px;
}

.remove-btn {
     background: none;
     border: none;
     color: #262262;
     font-size: 18px;
     font-weight: bold;
     cursor: pointer;
     transition: 0.2s;
}

.remove-btn:hover {
     color: #f88282;
}

.info-container {
     position: relative;
     display: inline-block;
}

.info-btn {
     cursor: pointer;
     font-weight: 600;
     color: #0077ff;
     padding: 6px 12px;
}

/* =========================
   MAIN CONTENT STYLE
========================= */
.a-fact {
     background: rgba(255, 255, 255, 0.9);
     border-radius: 16px;
     box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
     padding: 40px;
     margin: 8rem auto 0 auto;
     width: 90%;
     max-width: 1000px;
}

/* หัวข้อใหญ่ */
.group-title {
     text-align: center;
     margin-bottom: 30px;
}

.group-title .sub-title .text {
     font-size: 30px;
     text-transform: uppercase;
     font-weight: 600;
     color: #007BFF;
     letter-spacing: 1px;
     margin-bottom: 6px;
}

.group-title .main-title {
     font-size: 32px;
     font-weight: 700;
     color: #262262;
     margin: 0;
}

/* ให้มุมตารางโค้ง + เงา */
.table {
     border-radius: 12px;
     overflow: hidden;
     background: #fff;
     box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
     border-collapse: separate;
     border-spacing: 0;
}

.table thead {
     background: linear-gradient(135deg, #00c6ff, #0072ff);

     color: #fff;
     text-align: center;
     font-weight: 600;
}

.table thead th {
     padding: 12px;
     align-content: center;
}

/* cell */
.table tbody td {
     padding: 12px 16px;
     font-size: 15px;
     color: #333;
     border: none;
}

.table tbody td:nth-child(2) {
     text-align: center;
}

/* แถวสลับสี */
.table tbody tr:nth-child(even) {
     background: #f9fbff;
}

/* แถว hover */
.table tbody tr:hover td {
     background: rgba(0, 123, 255, 0.07);
     transition: 0.2s ease;
}

/* แถวหัวข้อย่อย (colspan) */
.table tbody tr td[colspan="2"] {
     background: #eef5ff;
     font-weight: 600;
     color: #262262;
}

.close-popup {
     position: absolute;
     top: 8px;
     right: 12px;
     background: none;
     border: none;
     font-size: 22px;
     font-weight: bold;
     color: #333;
     cursor: pointer;
}

.close-popup:hover {
     color: red;
}

.cart-popup {
     animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
     from {
          opacity: 0;
          transform: translateY(20px);
     }

     to {
          opacity: 1;
          transform: translateY(0);
     }
}

#aboutRassadaPierModal .modal-body {
     overflow-y: auto;
     max-height: calc(90vh - 20px);
}

.modal-content::-webkit-scrollbar {
     width: 8px;
}

.modal-content::-webkit-scrollbar-track {
     background: #f1f1f1;
}

.modal-content::-webkit-scrollbar-thumb {
     background: #667eea;
     border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
     background: #764ba2;
}

#aboutRassadaPierModal .info-table {
     width: 100%;
     border-collapse: collapse;
     margin: 30px 0;
     background: #f8f9fa;
     border-radius: 8px;
     overflow: hidden;
     box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.1);
}

#aboutRassadaPierModal .info-table th,
.info-table td {
     padding: 15px;
     text-align: left;
     border-bottom: 1px solid #dee2e6;
}

#aboutRassadaPierModal .info-table th {
     background: #2a5298;
     color: #ffffff;
     font-weight: 600;
     text-transform: uppercase;
     font-size: 0.9em;
     letter-spacing: 0.5px;
}

#aboutRassadaPierModal .info-table tr:last-child td {
     border-bottom: none;
}

#aboutRassadaPierModal .info-table tr:hover {
     background: #e9ecef;
}

#aboutRassadaPierModal h2 {
     color: #1e3c72;
     font-size: 1.8em;
     margin: 30px 0 15px 0;
     padding-bottom: 10px;
     border-bottom: 3px solid #667eea;
     border-image: linear-gradient(to right, #667eea, #5369c9) 1;
     letter-spacing: -0.5px;
}

#aboutRassadaPierModal h3 {
     color: #2a5298;
     font-size: 1.4em;
     margin: 25px 0 10px 0;
     letter-spacing: -0.5px;
}

#aboutRassadaPierModal h4 {
     font-size: 1.25em;
     letter-spacing: -0.5px;
}

#aboutRassadaPierModal p {
     margin-bottom: 15px;
     line-height: 1.5;
     color: #333;
}

#aboutRassadaPierModal ul {
     margin: 15px 0 15px 30px;
}

#aboutRassadaPierModal li {
     margin-bottom: 10px;
     line-height: 1.8;
}

#aboutRassadaPierModal .highlight-box {
     background: linear-gradient(135deg, #3F51B5 0%, #4390ff 100%);
     color: #ffffff;
     padding: 20px;
     border-radius: 10px;
     margin: 20px 0;
}

#aboutRassadaPierModal .highlight-box p {
     color: #ffffff;
     font-weight: 400 !important;
}

#aboutRassadaPierModal .highlight-box h3 {
     color: #ffffff;
     margin-top: 0;
}

.timeline {
     position: relative;
     padding-left: 30px;
     margin: 20px 0;
}

#aboutRassadaPierModal .timeline::before {
     content: '';
     position: absolute;
     left: 19px;
     top: -8px;
     bottom: 0;
     width: 3px;
     background: linear-gradient(180deg, #8499f7 0%, #2648e4 100%);
}

#aboutRassadaPierModal ul li a {
     display: inline;
     text-align: start;
     text-decoration: none;
}

.timeline-item {
     position: relative;
     margin-bottom: 25px;
     padding-left: 25px;
}

.timeline-item::before {
     content: '';
     position: absolute;
     left: -17px;
     top: 5px;
     width: 15px;
     height: 15px;
     border-radius: 50%;
     background: #ffffff;
     border: 3px solid #667eea;
}

.timeline-item h4 {
     color: #2a5298;
     margin-bottom: 5px;
}

@media (max-width: 768px) {
     .modal-header h1 {
          font-size: 2em;
     }

     .info-table {
          background-color: transparent !important;
          box-shadow: none !important;
     }

     .info-table th,
     .info-table td {
          padding: 10px;
          font-size: 16px;
     }

     #aboutRassadaPierModal h2 {
          font-size: 1.25rem;
          letter-spacing: -0.5px;
     }

     #aboutRassadaPierModal .main-content h1 {
          font-size: 2em;
     }
}

a.wiki-link {
     color: #1a73e8;
     text-decoration: none;
     font-weight: 500;
}

a.wiki-link:hover {
     text-decoration: underline !important;
}

.highlight-box a.wiki-link {
     color: #ff560a !important;
}

/* Popup */
#wiki-preview {
     position: fixed;
     max-width: 360px;
     padding: 12px 14px;
     background: #ffffff;
     border-radius: 10px;
     box-shadow: 0 8px 25px rgba(0, 0, 0, 0.18);
     border: 1px solid rgba(0, 0, 0, 0.06);
     font-size: 14px;
     z-index: 9999;
     display: none;
}

#wiki-preview-header {
     display: flex;
     gap: 10px;
     margin-bottom: 6px;
}

#wiki-preview-thumb {
     width: 56px;
     height: 56px;
     border-radius: 6px;
     object-fit: cover;
     display: none;
}

#wiki-preview-title {
     font-weight: 600;
     margin-bottom: 2px;
}

#wiki-preview-url {
     font-size: 11px;
     color: #4285f4;
     margin-bottom: 6px;
}

#wiki-preview-summary {
     color: #555;
     line-height: 1.4;
}

@media (max-width: 553px) {

     .table tbody td {
          font-size: 13px;
     }

     .a-fact {
          padding: 1rem;
     }
}



/* =========================
   PRIVACY POLICY SECTIONS
========================= */
.privacy-section {
     margin-bottom: 30px;
     padding: 30px;
     background: #f8f9fa;
     border-radius: 12px;
     border-left: 4px solid #007BFF;
}

.privacy-section h2 {
     color: #007BFF;
     font-size: 1.6em;
     margin-bottom: 15px;
     font-weight: 600;
}

.privacy-section h3 {
     color: #262262;
     font-size: 1.3em;
     margin-top: 20px;
     margin-bottom: 10px;
     font-weight: 500;
}

.privacy-section p {
     line-height: 1.8;
     color: #555;
     margin-bottom: 15px;
     font-size: 1.05em;
}

.privacy-section ul {
     margin-left: 20px;
     margin-bottom: 15px;
}

.privacy-section li {
     line-height: 1.8;
     color: #555;
     margin-bottom: 10px;
}

.privacy-section strong {
     color: #333;
     font-weight: 600;
}

.contact-info {
     background: linear-gradient(135deg, #00c6ff, #0072ff);
     color: white;
     padding: 30px;
     border-radius: 12px;
     margin-top: 30px;
     box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.contact-info h2 {
     color: white;
     margin-bottom: 15px;
     font-size: 1.6em;
}

.contact-info a {
     color: white;
     text-decoration: underline;
}

.contact-info a:hover {
     opacity: 0.9;
}

.last-updated {
     text-align: center;
     color: #888;
     font-style: italic;
     margin-top: 30px;
     padding: 20px;
}

@media (max-width: 768px) {
     .a-fact {
          margin-top: 5rem !important;
     }

     #aboutRassadaPierModal ul {
          margin: 15px 0 15px 10px !important;
     }

     #aboutRassadaPierModal h3 {
          font-size: 1.2rem !important;
          letter-spacing: -0.5px;
     }

     .privacy-section {
          padding: 20px;
     }

     .privacy-section h2 {
          font-size: 1.4em;
     }

     .privacy-section h3 {
          font-size: 1.2em;
     }

     .hamburger-menu {
          display: block;
     }

     .icon-head {
          display: none;
          position: fixed;
          top: 70px;
          left: 0;
          width: 100%;
          flex-direction: column;
          background: #fffffffa;
          backdrop-filter: blur(8px);
          box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
          padding: 1rem 0;
     }

     .icon-head.active {
          display: flex;
     }

     .icon-head li {
          width: 100%;
     }

     .icon-head li a {
          width: 100%;
          text-align: left;
          padding: 12px 20px;
     }
}