/*
Theme Name: Sunway Travel
Theme URI: https://example.com/sunway-travel
Author: Codex
Author URI: https://openai.com
Description: A WordPress travel theme converted from the existing Sunway HTML template.
Version: 1.0.2
Requires at least: 6.4
Tested up to: 6.9
Requires PHP: 7.4
Text Domain: sunway-travel
*/

/*
 * Do not gate page rendering behind JS. The template's original stylesheet
 * already handles the preloader, and keeping the page visible avoids blank
 * screens when page-transition scripts fail or are cached inconsistently.
 */
.page {
  opacity: 1;
}

.preloader {
  display: none;
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background-color: #f1f1f1;
  clip: auto !important;
  clip-path: none;
  color: #21759b;
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}

.admin-bar .rd-navbar.rd-navbar-fixed,
.admin-bar .rd-navbar.rd-navbar-static {
  top: 32px;
}

@media (max-width: 782px) {
  .admin-bar .rd-navbar.rd-navbar-fixed,
  .admin-bar .rd-navbar.rd-navbar-static {
    top: 46px;
  }
}

.wp-block-image img,
.post-classic-image,
.post-light-image,
.tour-classic-image,
.tour-2-image,
.post-corporate-image,
.thumbnail-light-image {
  height: auto;
  max-width: 100%;
}

.wp-caption,
.gallery-caption {
  max-width: 100%;
}

.aligncenter {
  clear: both;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.alignleft {
  float: left;
  margin: 0 30px 20px 0;
}

.alignright {
  float: right;
  margin: 0 0 20px 30px;
}

.sticky .post-classic-divider,
.sticky .post-corporate-divider {
  background-color: #ffc947;
}

.sunway-empty-state {
  border: 1px dashed rgba(0, 0, 0, 0.15);
  border-radius: 10px;
  color: #6f7484;
  padding: 24px;
}

.sunway-content ul,
.sunway-content ol {
  margin-bottom: 1.5rem;
}

.sunway-contact-shortcode {
  background: #f7f8fb;
  border-radius: 12px;
  padding: 24px;
}

.sunway-post-content iframe,
.sunway-post-content video {
  max-width: 100%;
}

.sunway-meta-input {
  width: 100%;
}

.sunway-meta-note {
  color: #646970;
  font-size: 12px;
}

.sunway-comment-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sunway-comment-list .comment {
  margin-bottom: 30px;
}

.sunway-comment-card {
  align-items: flex-start;
  display: flex;
  gap: 18px;
}

.sunway-comment-avatar img {
  border-radius: 50%;
}

.sunway-comment-body time {
  color: #6f7484;
  display: block;
  font-size: 14px;
  margin-top: 6px;
}

.sunway-comment-form .form-submit {
  margin-top: 30px;
}

.sunway-comment-form .submit {
  background: #ffb629;
  border: 0;
  border-radius: 30px;
  color: #1d2736;
  cursor: pointer;
  font-weight: 700;
  min-width: 170px;
  padding: 16px 28px;
}

.sunway-comment-form input:not([type="submit"]),
.sunway-comment-form textarea {
  width: 100%;
}

.sunway-pagination {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 40px;
}

.sunway-pagination .page-numbers {
  align-items: center;
  border: 1px solid rgba(34, 42, 55, 0.15);
  border-radius: 50%;
  color: #1d2736;
  display: inline-flex;
  height: 46px;
  justify-content: center;
  min-width: 46px;
  padding: 0 10px;
}

.sunway-pagination .current,
.sunway-pagination a:hover {
  background: #ffb629;
  border-color: #ffb629;
  color: #1d2736;
}

.sunway-page-content table,
.sunway-post-content table {
  width: 100%;
}

.sunway-page-content table td,
.sunway-page-content table th,
.sunway-post-content table td,
.sunway-post-content table th {
  border: 1px solid rgba(34, 42, 55, 0.12);
  padding: 12px 15px;
}

.sunway-inline-form {
  align-items: end;
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.sunway-inline-form button,
.sunway-inline-form .button {
  width: 100%;
}

.sunway-hero-search {
  align-items: end;
  display: grid;
  gap: 15px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.sunway-hero-search .form-button {
  display: flex;
}
