/*
Theme Name: TicketHub
Theme URI: https://tickethub.com
Author: TicketHub
Author URI: https://tickethub.com
Description: A premium, SEO-ready WordPress theme for cheap flight ticket deals, travel content, and affiliate flight search.
Version: 1.1.1
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tickethub
Tags: travel, blog, custom-menu, featured-images, responsive-layout
*/

:root {
  --blue: #0d6efd;
  --blue-dark: #0847a6;
  --teal: #00a884;
  --amber: #f59e0b;
  --ink: #101828;
  --muted: #526071;
  --line: #dce4ef;
  --soft: #f4f8fc;
  --white: #ffffff;
  --shadow: 0 18px 46px rgba(16, 24, 40, 0.1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: #f7fafc;
  color: var(--ink);
  font-family: "Inter", Arial, sans-serif;
  line-height: 1.7;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.container {
  margin: 0 auto;
  max-width: 1200px;
  width: 92%;
}

.site-header {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(220, 228, 239, 0.9);
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.05);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 999;
}

.navbar {
  align-items: center;
  display: flex;
  gap: 24px;
  justify-content: space-between;
}

.logo,
.custom-logo-link {
  align-items: center;
  color: var(--blue);
  display: inline-flex;
  font-family: "Poppins", Arial, sans-serif;
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
}

.custom-logo {
  max-height: 48px;
  width: auto;
}

.primary-navigation ul {
  align-items: center;
  display: flex;
  gap: 24px;
  list-style: none;
}

.primary-navigation a {
  color: #182230;
  font-weight: 700;
  position: relative;
}

.primary-navigation a::after {
  background: var(--teal);
  bottom: -8px;
  content: "";
  height: 3px;
  left: 0;
  position: absolute;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
  width: 100%;
}

.primary-navigation a:hover,
.primary-navigation a:focus {
  color: var(--blue-dark);
}

.primary-navigation a:hover::after,
.primary-navigation a:focus::after {
  transform: scaleX(1);
}

.menu-toggle {
  align-items: center;
  background: #eef6ff;
  border: 1px solid #cfe2ff;
  border-radius: 8px;
  color: var(--blue-dark);
  cursor: pointer;
  display: none;
  font-size: 20px;
  height: 44px;
  justify-content: center;
  width: 44px;
}

.btn,
.wp-block-button__link {
  align-items: center;
  background: var(--blue);
  border: 0;
  border-radius: 8px;
  box-shadow: 0 12px 24px rgba(13, 110, 253, 0.22);
  color: var(--white);
  cursor: pointer;
  display: inline-flex;
  font-weight: 800;
  gap: 8px;
  justify-content: center;
  line-height: 1.2;
  min-height: 48px;
  padding: 14px 26px;
  text-align: center;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.btn:hover,
.btn:focus,
.wp-block-button__link:hover,
.wp-block-button__link:focus {
  background: var(--blue-dark);
  color: var(--white);
  box-shadow: 0 16px 30px rgba(8, 71, 166, 0.24);
  transform: translateY(-2px);
}

.btn-light {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.38);
  box-shadow: none;
}

.btn-light:hover,
.btn-light:focus {
  background: rgba(255, 255, 255, 0.24);
}

.btn-dark {
  background: #111827;
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.2);
}

.hero {
  align-items: center;
  background:
    linear-gradient(90deg, rgba(6, 16, 36, 0.86), rgba(6, 16, 36, 0.64) 52%, rgba(6, 16, 36, 0.4)),
    var(--hero-image, url("https://images.unsplash.com/photo-1436491865332-7a61a109cc05?q=80&w=1600&auto=format&fit=crop")) center / cover;
  color: var(--white);
  display: flex;
  min-height: 86vh;
  padding: 86px 0;
}

.hero-grid {
  align-items: center;
  display: grid;
  gap: 54px;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 460px);
}

.hero-copy {
  max-width: 760px;
}

.eyebrow,
.section-kicker {
  align-items: center;
  display: inline-flex;
  font-size: 14px;
  font-weight: 800;
  gap: 8px;
}

.eyebrow {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  margin-bottom: 22px;
  padding: 8px 14px;
}

.section-kicker {
  color: var(--teal);
  margin-bottom: 10px;
}

.hero h1 {
  font-family: "Poppins", Arial, sans-serif;
  font-size: 58px;
  line-height: 1.08;
  margin-bottom: 22px;
}

.hero p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 19px;
  margin-bottom: 30px;
  max-width: 690px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 34px;
}

.hero-stats {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 640px;
}

.hero-stats div {
  border-left: 3px solid var(--amber);
  padding-left: 14px;
}

.hero-stats strong {
  display: block;
  font-family: "Poppins", Arial, sans-serif;
  font-size: 28px;
  line-height: 1.15;
}

.hero-stats span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.search-box {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: 8px;
  box-shadow: var(--shadow);
  color: var(--ink);
  padding: 30px;
}

.form-heading {
  align-items: center;
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
}

.form-heading h2 {
  font-family: "Poppins", Arial, sans-serif;
  font-size: 28px;
  line-height: 1.15;
}

.form-heading p,
.partner-note {
  color: var(--muted);
  font-size: 14px;
}

.form-icon,
.feature-icon {
  align-items: center;
  background: #e8f7ff;
  border-radius: 8px;
  color: #006b8f;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 24px;
  height: 54px;
  justify-content: center;
  width: 54px;
}

.trip-tabs {
  background: #eef4fb;
  border-radius: 8px;
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: 18px;
  padding: 6px;
}

.trip-tab {
  background: transparent;
  border: 0;
  border-radius: 8px;
  color: #344054;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  min-height: 40px;
}

.trip-tab.is-active {
  background: var(--white);
  box-shadow: 0 8px 18px rgba(16, 24, 40, 0.08);
  color: var(--blue-dark);
}

.form-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field-group {
  min-width: 0;
}

.search-box label {
  color: #344054;
  display: block;
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 6px;
}

.search-box input,
.search-box select {
  background: var(--white);
  border: 1px solid #cdd7e3;
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
  min-height: 50px;
  padding: 13px 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
}

.search-box input:focus,
.search-box select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.12);
  outline: none;
}

.search-box > .btn {
  margin-top: 18px;
  width: 100%;
}

.partner-note {
  align-items: center;
  color: var(--muted);
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 14px;
}

.search-box .partner-note {
  color: var(--muted);
}

section {
  padding: 88px 0;
}

.route-strip {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  padding: 18px 0;
}

.route-strip-inner {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.route-strip span {
  color: var(--muted);
  font-weight: 800;
}

.route-strip a {
  background: #eef7ff;
  border: 1px solid #cfe8ff;
  border-radius: 999px;
  color: var(--blue-dark);
  font-weight: 800;
  padding: 8px 13px;
}

.section-title {
  margin: 0 auto 48px;
  max-width: 760px;
  text-align: center;
}

.section-title h2,
.steps-grid h2,
.faq-grid h2 {
  font-family: "Poppins", Arial, sans-serif;
  font-size: 40px;
  line-height: 1.18;
  margin-bottom: 12px;
}

.section-title p,
.steps-grid > div > p,
.faq-grid > div > p {
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 28px;
}

.features-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.deals-grid,
.blog-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  background: var(--white);
  border: 1px solid #e1e7ef;
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(16, 24, 40, 0.07);
  padding: 28px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.card:hover {
  border-color: #bdd7ff;
  box-shadow: 0 18px 42px rgba(16, 24, 40, 0.11);
  transform: translateY(-5px);
}

.card h3 {
  font-family: "Poppins", Arial, sans-serif;
  font-size: 22px;
  line-height: 1.25;
  margin: 15px 0 10px;
}

.card p {
  color: var(--muted);
}

.feature-card:nth-child(2) .feature-icon {
  background: #e8fdf6;
  color: #087c62;
}

.feature-card:nth-child(3) .feature-icon {
  background: #fff6df;
  color: #a15c00;
}

.feature-card:nth-child(4) .feature-icon {
  background: #f0edff;
  color: #5b4abf;
}

.deals-section {
  background: linear-gradient(180deg, #eef7ff 0%, #f7fafc 55%, #ffffff 100%);
}

.deal-card {
  position: relative;
}

.deal-card::before {
  background: linear-gradient(90deg, var(--blue), var(--teal), var(--amber));
  content: "";
  height: 4px;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.deal-topline {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 13px;
  font-weight: 800;
  gap: 10px;
  justify-content: space-between;
  margin-bottom: 12px;
}

.deal-topline span:last-child {
  align-items: center;
  display: inline-flex;
  gap: 6px;
}

.deal-badge,
.blog-category {
  background: #e8f7ff;
  border-radius: 999px;
  color: #03688f;
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  padding: 6px 11px;
}

.route-meta {
  align-items: center;
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.price {
  color: var(--blue);
  font-family: "Poppins", Arial, sans-serif;
  font-size: 34px;
  font-weight: 700;
  margin: 10px 0 22px;
}

.price span {
  color: var(--muted);
  display: block;
  font-family: "Inter", Arial, sans-serif;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 2px;
}

.savings-panel {
  align-items: center;
  background: #101828;
  border-radius: 8px;
  color: var(--white);
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-top: 34px;
  padding: 34px;
}

.savings-panel h3 {
  font-family: "Poppins", Arial, sans-serif;
  font-size: 28px;
  line-height: 1.25;
  margin-bottom: 8px;
}

.savings-panel p {
  color: rgba(255, 255, 255, 0.75);
}

.ad-slot {
  background: rgba(255, 255, 255, 0.86);
  border: 1px dashed #a9cdfa;
  border-radius: 8px;
  box-shadow: 0 8px 25px rgba(16, 24, 40, 0.06);
  margin: 30px auto 10px;
  max-width: 1200px;
  padding: 25px;
  text-align: center;
}

.ad-slot p {
  color: #526071;
  font-weight: 800;
}

.ad-slot small {
  color: #7b8794;
  display: block;
  margin-top: 4px;
}

.steps-section {
  background: #ffffff;
}

.steps-grid {
  align-items: start;
  display: grid;
  gap: 54px;
  grid-template-columns: 0.9fr 1.1fr;
}

.step-list {
  display: grid;
  gap: 18px;
}

.step-item {
  align-items: start;
  background: #f6f9fd;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 18px;
  grid-template-columns: 64px 1fr;
  padding: 22px;
}

.step-item > span {
  align-items: center;
  background: var(--blue);
  border-radius: 8px;
  color: var(--white);
  display: flex;
  font-family: "Poppins", Arial, sans-serif;
  font-weight: 700;
  height: 48px;
  justify-content: center;
  width: 48px;
}

.step-item h3 {
  font-family: "Poppins", Arial, sans-serif;
  margin-bottom: 4px;
}

.step-item p {
  color: var(--muted);
}

.blog-card {
  overflow: hidden;
  padding: 0;
}

.blog-card h3,
.blog-card p,
.blog-card .blog-category,
.blog-card .text-link {
  margin-left: 24px;
  margin-right: 24px;
}

.blog-card h3 {
  min-height: 56px;
}

.blog-card p {
  margin-bottom: 22px;
}

.blog-media {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #dbeafe, #b7f4e7);
  margin: 0 0 22px;
  overflow: hidden;
  position: relative;
}

.blog-media-alt {
  background: linear-gradient(135deg, #bfe8ff, #ffe2a8);
}

.blog-media-warm {
  background: linear-gradient(135deg, #ffd9bf, #c9f2ff);
}

.blog-media img {
  height: 100%;
  object-fit: cover;
  transition: opacity 0.2s ease, transform 0.35s ease;
  width: 100%;
}

.blog-card:hover .blog-media img {
  transform: scale(1.04);
}

.blog-media img.image-failed {
  opacity: 0;
}

.blog-category {
  margin-bottom: 0;
}

.text-link {
  align-items: center;
  color: var(--blue-dark);
  display: inline-flex;
  font-weight: 900;
  gap: 8px;
  margin-bottom: 26px;
}

.text-link:hover,
.text-link:focus {
  color: var(--teal);
}

.faq-section {
  background: #f4f8fc;
}

.faq-grid {
  align-items: start;
  display: grid;
  gap: 50px;
  grid-template-columns: 0.8fr 1.2fr;
}

.faq-list {
  display: grid;
  gap: 18px;
}

.faq-list .card {
  padding: 24px;
}

.site-main {
  min-height: 60vh;
}

.content-area {
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(16, 24, 40, 0.07);
  margin: 70px auto;
  max-width: 900px;
  padding: 50px;
}

.content-area h1,
.content-area h2,
.content-area h3 {
  font-family: "Poppins", Arial, sans-serif;
  line-height: 1.25;
  margin-bottom: 16px;
}

.content-area h1 {
  font-size: 42px;
}

.content-area p,
.content-area ul,
.content-area ol {
  margin-bottom: 18px;
}

.post-list {
  display: grid;
  gap: 26px;
}

.post-list article {
  border-bottom: 1px solid var(--line);
  padding-bottom: 26px;
}

.post-list article:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.site-footer {
  background: #101828;
  color: var(--white);
  padding: 70px 0 30px;
}

.footer-grid {
  display: grid;
  gap: 40px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.site-footer h2,
.site-footer h3 {
  font-family: "Poppins", Arial, sans-serif;
  margin-bottom: 14px;
}

.site-footer p {
  color: #d1d5db;
}

.site-footer ul {
  list-style: none;
}

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

.site-footer a {
  color: #d1d5db;
}

.site-footer a:hover,
.site-footer a:focus {
  color: var(--white);
}

.footer-contact {
  margin-top: 15px;
}

.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #9ca3af;
  margin-top: 40px;
  padding-top: 25px;
  text-align: center;
}

.whatsapp {
  align-items: center;
  background: #25d366;
  border-radius: 50%;
  bottom: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  color: var(--white);
  display: flex;
  font-size: 34px;
  height: 65px;
  justify-content: center;
  position: fixed;
  right: 20px;
  transition: transform 0.2s ease;
  width: 65px;
  z-index: 9999;
}

.whatsapp:hover,
.whatsapp:focus {
  color: var(--white);
  transform: translateY(-2px);
}

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

@media (max-width: 1120px) {
  .features-grid,
  .deals-grid,
  .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 992px) {
  .hero {
    min-height: auto;
  }

  .hero-grid,
  .steps-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 44px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .primary-navigation {
    background: var(--white);
    box-shadow: 0 20px 40px rgba(16, 24, 40, 0.12);
    left: 0;
    opacity: 0;
    padding: 24px 4%;
    pointer-events: none;
    position: absolute;
    right: 0;
    top: 100%;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .primary-navigation.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .primary-navigation ul {
    align-items: stretch;
    flex-direction: column;
    gap: 0;
  }

  .primary-navigation li {
    border-bottom: 1px solid var(--line);
  }

  .primary-navigation li:last-child {
    border-bottom: 0;
  }

  .primary-navigation a {
    display: block;
    padding: 14px 0;
  }

  .primary-navigation a::after {
    display: none;
  }
}

@media (max-width: 760px) {
  .site-header {
    padding: 14px 0;
  }

  .navbar {
    gap: 12px;
  }

  .logo,
  .custom-logo-link {
    font-size: 27px;
  }

  .header-cta {
    display: none;
  }

  .hero {
    padding: 62px 0;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero p {
    font-size: 17px;
  }

  .hero-actions,
  .hero-stats,
  .form-grid,
  .features-grid,
  .deals-grid,
  .blog-grid,
  .savings-panel {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    display: grid;
  }

  .search-box {
    padding: 22px;
  }

  .form-heading {
    align-items: flex-start;
  }

  section {
    padding: 62px 0;
  }

  .section-title h2,
  .steps-grid h2,
  .faq-grid h2,
  .content-area h1 {
    font-size: 32px;
  }

  .savings-panel {
    padding: 26px;
  }

  .savings-panel h3 {
    font-size: 24px;
  }

  .btn,
  .wp-block-button__link {
    width: 100%;
  }

  .content-area {
    padding: 32px 22px;
  }

  .step-item {
    grid-template-columns: 52px 1fr;
  }

  .whatsapp {
    bottom: 16px;
    height: 56px;
    right: 16px;
    width: 56px;
  }
}
