/* ==========================================================================
   TravelQ Theme — main.css
   Style strictly matching the footer aesthetic (#d2b48c, #f5f5dc, #2b2c28)
   Call to action (CTA) buttons stay accent orange (#ffa500 / #dd6b20)
   ========================================================================== */

/* --------------------------------------------------------------------------
   Variables & Reset
   -------------------------------------------------------------------------- */
:root {
  --tq-tan: #d2b48c;             /* Primary tan / camel from footer */
  --tq-tan-hover: #c4a47c;
  --tq-tan-light: #e8d7c0;
  --tq-beige: #f5f5dc;           /* Creamy beige from sub-footer */
  --tq-beige-light: #faf8f2;     /* Warm page background */
  --tq-cta-orange: #dd6b20;       /* Call-to-action button color (preserved) */
  --tq-cta-orange-hover: #c05621;
  --tq-cta-gold: #ffa500;
  --tq-dark: #2b2c28;            /* Dark charcoal / brown text */
  --tq-dark-muted: #5a574f;
  --tq-border: #e2d7c5;
  --tq-border-light: #eee7db;
  --tq-card-bg: #ffffff;
  --tq-font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --tq-font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --tq-radius-sm: 4px;
  --tq-radius-md: 8px;
  --tq-radius-lg: 12px;
  --tq-shadow-sm: 0 2px 6px rgba(43, 44, 40, 0.05);
  --tq-shadow-md: 0 6px 16px rgba(43, 44, 40, 0.08);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--tq-font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--tq-dark);
  background-color: var(--tq-beige-light);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.tq-container {
  width: 100%;
  max-width: 1220px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* --------------------------------------------------------------------------
   Header (Harmonious with tan & beige palette)
   -------------------------------------------------------------------------- */
.tq-site-header {
  position: relative;
  z-index: 100;
  background: #ffffff;
  border-bottom: 2px solid var(--tq-tan);
}

/* Top bar */
.tq-topbar {
  background-color: var(--tq-beige);
  border-bottom: 1px solid var(--tq-border);
  padding: 8px 0;
  font-size: 14px;
}

.tq-topbar-inner {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 24px;
}

.tq-topbar-item {
  color: var(--tq-dark-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.tq-topbar-item a:hover {
  color: var(--tq-dark);
  text-decoration: underline;
}

/* Main header */
.tq-main-header {
  padding: 18px 0;
  background-color: #ffffff;
}

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

.tq-logo img {
  height: 52px;
  width: auto;
}

.tq-header-actions {
  display: flex;
  align-items: center;
  gap: 28px;
}

.tq-nav-list {
  display: flex;
  list-style: none;
  gap: 22px;
  align-items: center;
}

.tq-nav-list li a {
  font-family: var(--tq-font-heading);
  font-size: 15px;
  font-weight: 600;
  color: var(--tq-dark);
  padding: 8px 4px;
  position: relative;
  letter-spacing: 0.02em;
}

.tq-nav-list li a:hover,
.tq-nav-list li.current-menu-item a {
  color: #8c7350;
  border-bottom: 2px solid var(--tq-tan);
}

/* Call to Action Button: PRESERVED ORANGE */
.tq-btn-book {
  background-color: var(--tq-cta-orange);
  color: #ffffff !important;
  font-family: var(--tq-font-heading);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 12px 24px;
  border-radius: var(--tq-radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(221, 107, 32, 0.28);
  transition: background-color 0.2s, transform 0.15s;
  white-space: nowrap;
}

.tq-btn-book:hover {
  background-color: var(--tq-cta-orange-hover);
  transform: translateY(-1px);
}

/* Mobile Toggle */
.tq-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.tq-hamburger {
  width: 26px;
  height: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.tq-hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--tq-dark);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.tq-menu-toggle.active .tq-hamburger span:nth-child(1) {
  transform: translateY(8.5px) rotate(45deg);
}

.tq-menu-toggle.active .tq-hamburger span:nth-child(2) {
  opacity: 0;
}

.tq-menu-toggle.active .tq-hamburger span:nth-child(3) {
  transform: translateY(-8.5px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   Hero Banners — IN TAN (#d2b48c) LIKE FOOTER
   -------------------------------------------------------------------------- */
.tq-hero-banner {
  background-color: var(--tq-tan);
  color: var(--tq-dark);
  padding: 56px 0 48px;
  text-align: center;
  border-bottom: 1px solid var(--tq-tan-hover);
}

.tq-hero-title {
  font-family: var(--tq-font-heading);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.25;
  color: #1a202c;
  margin-bottom: 14px;
}

.tq-hero-subtitle {
  font-size: 1.15rem;
  max-width: 760px;
  margin: 0 auto;
  color: #3b372f;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Chapter Navigation Pills (Разделы)
   -------------------------------------------------------------------------- */
.tq-section {
  padding: 55px 0 75px;
}

/* --------------------------------------------------------------------------
   Dual Filter System (Country & Chapter Filters)
   -------------------------------------------------------------------------- */
.tq-filters-box {
  background: #ffffff;
  border: 1px solid var(--tq-border);
  border-radius: 16px;
  padding: 24px 28px;
  margin-bottom: 40px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.tq-filter-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tq-filter-label {
  font-family: var(--tq-font-heading);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #7a6e5d;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tq-filter-label svg {
  color: #9c7b4a;
  flex-shrink: 0;
}

.tq-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

@media (min-width: 992px) {
  .tq-filter-row {
    flex-direction: row;
    align-items: flex-start;
    gap: 24px;
  }
  .tq-filter-label {
    min-width: 170px;
    padding-top: 8px;
  }
  .tq-filter-pills {
    flex: 1;
  }
}

.tq-chapters-bar {
  margin-bottom: 38px;
}

.tq-chapters-title {
  font-family: var(--tq-font-heading);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #7a6e5d;
  margin-bottom: 14px;
  text-align: center;
}

.tq-chapter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.tq-pill {
  font-family: var(--tq-font-heading);
  font-size: 14px;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 24px;
  background-color: #ffffff;
  color: var(--tq-dark);
  border: 1.5px solid var(--tq-tan);
  box-shadow: var(--tq-shadow-sm);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tq-pill:hover {
  background-color: var(--tq-beige);
  border-color: #b08d55;
  transform: translateY(-1px);
}

.tq-pill.active {
  background-color: var(--tq-tan);
  color: #1a202c;
  border-color: #9c7b4a;
  box-shadow: 0 4px 10px rgba(176, 141, 85, 0.3);
}

/* --------------------------------------------------------------------------
   Question Cards Grid (Classic Tan & White)
   -------------------------------------------------------------------------- */
.tq-grid-posts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 28px;
}

.tq-post-card {
  background: var(--tq-card-bg);
  border: 1.5px solid var(--tq-border);
  border-radius: var(--tq-radius-md);
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--tq-shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.tq-post-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--tq-shadow-md);
  border-color: var(--tq-tan);
}

.tq-card-badge {
  display: inline-block;
  font-family: var(--tq-font-heading);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #725b39;
  background-color: var(--tq-beige);
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid var(--tq-border);
  margin-bottom: 12px;
}

.tq-card-title {
  font-family: var(--tq-font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--tq-dark);
  margin-bottom: 22px;
}

.tq-card-title a {
  color: var(--tq-dark);
}

.tq-card-title a:hover {
  color: #8c7350;
}

/* Read More Button: EXACTLY LIKE OXYGEN (.oxy-read-more) */
.tq-card-btn {
  align-self: flex-start;
  margin-top: auto;
  font-family: var(--tq-font-heading);
  font-size: 14px;
  font-weight: 600;
  color: #000000;
  background-color: var(--tq-tan);
  padding: 10px 20px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background-color 0.2s, transform 0.15s;
}

.tq-card-btn:hover {
  background-color: var(--tq-tan-hover);
  transform: translateY(-1px);
}

/* Pagination */
.tq-pagination {
  margin-top: 50px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.tq-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border-radius: 4px;
  border: 1.5px solid var(--tq-tan);
  background: #ffffff;
  color: var(--tq-dark);
  font-weight: 700;
}

.tq-pagination .page-numbers.current {
  background: var(--tq-tan);
  color: #000000;
  border-color: #a8854e;
}

.tq-pagination .page-numbers:hover:not(.current) {
  background: var(--tq-beige);
}

/* --------------------------------------------------------------------------
   Single Question Template
   -------------------------------------------------------------------------- */
.tq-single-header {
  background-color: var(--tq-tan);
  color: var(--tq-dark);
  padding: 55px 0 40px;
  border-bottom: 1px solid var(--tq-tan-hover);
  text-align: center;
}

.tq-single-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-size: 14px;
  margin-bottom: 16px;
}

.tq-single-chapter-badge {
  background: #ffffff;
  color: #725b39;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 20px;
  border: 1px solid var(--tq-border);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.05em;
}

.tq-single-chapter-badge:hover {
  background-color: var(--tq-beige);
}

.tq-single-date {
  color: #4a453c;
  font-weight: 500;
}

.tq-single-title {
  font-family: var(--tq-font-heading);
  font-size: clamp(1.65rem, 3.8vw, 2.45rem);
  font-weight: 700;
  line-height: 1.35;
  color: #1a202c;
  max-width: 960px;
  margin: 0 auto;
}

/* Answer card */
.tq-single-body {
  padding: 50px 0 70px;
}

.tq-answer-card {
  background: #ffffff;
  border: 1.5px solid var(--tq-border);
  border-radius: var(--tq-radius-lg);
  padding: 42px;
  box-shadow: var(--tq-shadow-sm);
  max-width: 920px;
  margin: 0 auto;
}

.tq-answer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 18px;
  margin-bottom: 26px;
  border-bottom: 2px solid var(--tq-beige);
}

.tq-answer-label {
  font-family: var(--tq-font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: #6d5432;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tq-answer-label svg {
  fill: var(--tq-tan);
}

.tq-answer-author {
  font-size: 14px;
  color: var(--tq-dark-muted);
}

.tq-answer-author strong {
  color: var(--tq-dark);
}

.tq-content {
  font-size: 17px;
  line-height: 1.8;
  color: #2b2c28;
}

.tq-content p {
  margin-bottom: 1.5em;
}

.tq-content h2, .tq-content h3, .tq-content h4 {
  font-family: var(--tq-font-heading);
  color: #1a202c;
  margin-top: 1.8em;
  margin-bottom: 0.8em;
  font-weight: 700;
}

.tq-content ul, .tq-content ol {
  margin-left: 24px;
  margin-bottom: 1.5em;
}

.tq-content li {
  margin-bottom: 0.5em;
}

/* Comments section */
.tq-comments-area {
  max-width: 920px;
  margin: 40px auto 0;
  background: #ffffff;
  border: 1.5px solid var(--tq-border);
  border-radius: var(--tq-radius-lg);
  padding: 35px;
}

.tq-comments-area h3 {
  font-family: var(--tq-font-heading);
  font-size: 1.35rem;
  margin-bottom: 20px;
  color: #1a202c;
}

/* Related Questions in same Chapter */
.tq-related-section {
  background: var(--tq-beige);
  padding: 60px 0 70px;
  border-top: 1px solid var(--tq-border);
}

.tq-related-title {
  font-family: var(--tq-font-heading);
  font-size: 1.65rem;
  font-weight: 700;
  margin-bottom: 32px;
  text-align: center;
  color: #1a202c;
}

.tq-related-title span {
  color: #8c7350;
}

/* --------------------------------------------------------------------------
   Simple Page Template (About Us, etc.)
   -------------------------------------------------------------------------- */
.tq-page-header {
  background-color: var(--tq-tan);
  padding: 50px 0 40px;
  text-align: center;
  border-bottom: 1px solid var(--tq-tan-hover);
}

.tq-page-title {
  font-family: var(--tq-font-heading);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: #1a202c;
}

.tq-page-body {
  padding: 50px 0 70px;
}

.tq-page-content-box {
  max-width: 880px;
  margin: 0 auto;
  background: #ffffff;
  padding: 42px;
  border-radius: var(--tq-radius-md);
  border: 1.5px solid var(--tq-border);
  box-shadow: var(--tq-shadow-sm);
}

/* --------------------------------------------------------------------------
   Footer (Original Authentic Design)
   -------------------------------------------------------------------------- */
.tq-footer {
  background-color: var(--tq-tan);
  color: var(--tq-dark);
  padding-top: 50px;
}

.tq-footer-columns {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.tq-footer-col h3 {
  font-family: var(--tq-font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: #1a202c;
}

.tq-footer-desc {
  font-size: 14px;
  line-height: 1.7;
  color: #3b372f;
}

.tq-footer-links {
  list-style: none;
}

.tq-footer-links li {
  margin-bottom: 12px;
}

.tq-footer-links a {
  font-size: 15px;
  color: #2b2c28;
  font-weight: 500;
}

.tq-footer-links a:hover {
  color: #000000;
  text-decoration: underline;
}

.tq-footer-contact a {
  font-weight: 700;
  font-size: 15px;
  color: #2b2c28;
}

.tq-footer-contact a:hover {
  text-decoration: underline;
}

/* Sub-footer bottom bar */
.tq-subfooter {
  background-color: var(--tq-beige);
  padding: 18px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.tq-subfooter-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tq-subfooter-logo img {
  height: 40px;
  width: auto;
}

.tq-subfooter-legal a {
  font-size: 13px;
  color: var(--tq-dark-muted);
}

.tq-subfooter-legal a:hover {
  color: var(--tq-dark);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
  .tq-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #ffffff;
    box-shadow: var(--tq-shadow-md);
    padding: 20px;
    border-bottom: 3px solid var(--tq-tan);
  }

  .tq-nav.open {
    display: block;
  }

  .tq-nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .tq-menu-toggle {
    display: block;
  }

  .tq-footer-columns {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

@media (max-width: 767px) {
  .tq-topbar-inner {
    justify-content: center;
  }

  .tq-grid-posts {
    grid-template-columns: 1fr;
  }

  .tq-footer-columns {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }

  .tq-subfooter-inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .tq-answer-card {
    padding: 24px 18px;
  }

  .tq-page-content-box {
    padding: 24px 18px;
  }

  .tq-btn-book {
    padding: 10px 18px;
    font-size: 13px;
  }
}
