/* =========================================
   market-page.css — Country/Market Pages
   Design System & Styling
   ========================================= */

/* --- Typography Defaults --- */
.market-content {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: #333;
  padding: 30px 0 50px;
}

/* --- Banner Header (hedding-tittle matching site design) --- */
.hedding-tittle-wrap {
  padding: 15px 0 5px;
}
.hedding-tittle {
  text-align: center;
  margin: 15px 0 25px;
}
.hedding-tittle h1 {
  font-size: 32px;
  color: #2e3192;
  font-weight: 700;
  background-color: #f7f7f7;
  border-left: 5px solid #ed1d24;
  padding: 12px 25px;
  display: inline-block;
  border-radius: 0 6px 6px 0;
  margin: 0 0 10px 0;
}
.breadcrumb-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #333;
}
.breadcrumb-menu ul li a {
  color: #000;
  font-weight: 700;
  text-decoration: none;
}
.breadcrumb-menu ul li.active {
  color: #555;
  font-weight: 600;
}

/* --- Main Layout: Content + Right Sidebar --- */
.market-layout {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}
.market-main {
  flex: 1;
  min-width: 0;
}

/* --- Right Sticky Sidebar (TOC) --- */
.market-sidebar {
  width: 310px;
  flex-shrink: 0;
  position: sticky;
  top: 130px;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

/* Table of Contents Box */
.toc-box {
  background: #ffffff;
  border: 1px solid #e2e8f8;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(3, 33, 111, 0.09);
  transition: box-shadow 0.3s ease;
}
.toc-box:hover {
  box-shadow: 0 12px 30px rgba(3, 33, 111, 0.14);
}
.toc-box .toc-header {
  background: linear-gradient(135deg, #03216f 0%, #2e3192 100%);
  color: #ffffff;
  padding: 16px 20px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.4px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 3px solid #ed1d24;
}
.toc-box ul {
  list-style: none;
  padding: 6px 0;
  margin: 0;
}
.toc-box ul li {
  border-bottom: 1px solid #f0f3fc;
}
.toc-box ul li:last-child {
  border-bottom: none;
}
.toc-box ul li a {
  display: flex;
  align-items: center;
  padding: 11px 18px;
  font-size: 15px;
  font-weight: 600;
  color: #333333;
  text-decoration: none;
  line-height: 1.45;
  border-left: 3px solid transparent;
  transition: all 0.22s ease-in-out;
}
.toc-box ul li a:hover {
  background: #f4f7ff;
  color: #ed1d24;
  border-left-color: #ed1d24;
  padding-left: 22px;
}
.toc-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ed1d24 0%, #c81017 100%);
  color: #ffffff;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  font-size: 11.5px;
  font-weight: 700;
  margin-right: 12px;
  flex-shrink: 0;
  box-shadow: 0 2px 5px rgba(237, 29, 36, 0.3);
  transition: transform 0.2s ease;
}
.toc-box ul li a:hover .toc-num {
  transform: scale(1.15);
}

/* --- Section Content Blocks & Cards --- */
.content-block {
  background: #ffffff;
  border: 1px solid #e8ecf8;
  border-radius: 10px;
  padding: 28px 30px;
  margin-bottom: 30px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
  position: relative;
  transition: box-shadow 0.3s ease;
}
.content-block:hover {
  box-shadow: 0 8px 25px rgba(46, 49, 146, 0.09);
}

.market-main h2 {
  font-size: 26px;
  font-weight: 700;
  color: #2e3192;
  border-left: 5px solid #ed1d24;
  padding-left: 14px;
  margin: 0 0 18px 0;
  line-height: 1.35;
}
.market-main h3 {
  font-size: 22px;
  font-weight: 700;
  color: #03216f;
  margin: 22px 0 14px 0;
}
.market-main p {
  font-size: 17.5px;
  line-height: 29px;
  color: #333333;
  margin-bottom: 16px;
  text-align: justify;
}

/* Section Image Wrapper */
.content-img-wrap {
  text-align: center;
  margin: 24px 0 10px;
}
.content-img {
  max-width: 100%;
  height: auto;
  border: 1px solid #e0e6f8;
  border-radius: 8px;
  box-shadow: 0 5px 18px rgba(0,0,0,0.08);
  padding: 6px;
  background: #ffffff;
  transition: transform 0.3s ease;
}
.content-img:hover {
  transform: scale(1.02);
}

/* --- Applications Grid (Visual 2-Column Cards) --- */
.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 15px;
  margin-top: 20px;
}
.app-card {
  background: #f8faff;
  border: 1px solid #e2e8f8;
  border-left: 4px solid #2e3192;
  border-radius: 8px;
  padding: 14px 18px;
  font-size: 16.5px;
  font-weight: 600;
  color: #01206e;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.25s ease;
}
.app-card:hover {
  background: #ffffff;
  border-left-color: #ed1d24;
  box-shadow: 0 4px 14px rgba(237, 29, 36, 0.15);
  transform: translateY(-2px);
}
.app-icon {
  width: 28px;
  height: 28px;
  background: #ed1d24;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

/* --- Features Grid (Structured Premium Feature Cards) --- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 22px;
}
.feature-card {
  background: #ffffff;
  border: 1px solid #e4e9f8;
  border-top: 4px solid #2e3192;
  border-radius: 10px;
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
  transition: all 0.28s ease-in-out;
}
.feature-card:hover {
  border-top-color: #ed1d24;
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(46, 49, 146, 0.12);
}
.feature-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
}
.feature-icon-badge {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ed1d24 0%, #c81017 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 3px 8px rgba(237, 29, 36, 0.3);
}
.feature-card-title {
  font-size: 17px;
  font-weight: 700;
  color: #2e3192;
  margin: 0;
  line-height: 1.3;
}
.feature-card-desc {
  font-size: 15px;
  line-height: 23px;
  color: #555555;
  margin: 0;
}

/* --- Price Range Callout Component --- */
.price-card-box {
  background: linear-gradient(135deg, #f7f9ff 0%, #edf1ff 100%);
  border: 1px solid #dbe2f8;
  border-left: 5px solid #2e3192;
  border-radius: 10px;
  padding: 22px 25px;
  margin: 22px 0 15px;
}
.price-card-list {
  list-style: none;
  padding: 0;
  margin: 0 0 15px 0;
}
.price-card-list li {
  padding: 8px 0 8px 24px;
  position: relative;
  font-size: 16.5px;
  color: #222222;
  border-bottom: 1px dashed #d5deec;
}
.price-card-list li:last-child {
  border-bottom: none;
}
.price-card-list li::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: #ed1d24;
  font-size: 14px;
}
.price-cta-wrap {
  text-align: right;
  margin-top: 15px;
}
.price-cta-btn {
  background: #ed1d24;
  color: #ffffff;
  padding: 10px 22px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  transition: background 0.25s ease;
}
.price-cta-btn:hover {
  background: #2e3192;
  color: #ffffff;
  text-decoration: none;
}

/* --- City Locations Grid --- */
.city-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}
.city-tag {
  background: #2e3192;
  color: #ffffff;
  padding: 8px 18px;
  border-radius: 25px;
  font-size: 14.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}
.city-tag:hover {
  background: #ed1d24;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(237, 29, 36, 0.25);
}

/* --- Search Tags Section --- */
.search-section {
  background: #f8f9fe;
  border: 1px solid #e2e7f8;
  border-radius: 10px;
  padding: 22px 25px;
  margin: 25px 0 10px;
}
.search-section h2 {
  font-size: 22px;
  font-weight: 700;
  color: #2e3192;
  margin: 0 0 15px 0;
  border: none;
  padding: 0;
}
.search-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.search-tag {
  background: #ffffff;
  border: 1.5px solid #2e3192;
  color: #2e3192;
  padding: 8px 18px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.25s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}
.search-tag:hover {
  background: #2e3192;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(46,49,146,0.25);
}

/* --- Reviews Section --- */
.reviews-section {
  background: transparent;
  margin-bottom: 30px;
}
.reviews-section h2 {
  font-size: 26px;
  font-weight: 700;
  color: #2e3192;
  border-left: 5px solid #ed1d24;
  padding-left: 14px;
  margin-bottom: 20px;
}
.map-container {
  margin-bottom: 25px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 18px rgba(0,0,0,0.08);
  border: 1px solid #e0e6f8;
  background: #ffffff;
}
.map-container iframe {
  width: 100%;
  height: 380px;
  display: block;
  border: 0;
}
.review-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.review-card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.06);
  padding: 22px;
  flex: 1 1 240px;
  border-top: 4px solid #2e3192;
  border-left: 1px solid #e8ecf8;
  border-right: 1px solid #e8ecf8;
  border-bottom: 1px solid #e8ecf8;
  transition: transform 0.25s ease;
}
.review-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(46, 49, 146, 0.12);
}
.review-card .reviewer-name {
  font-size: 19px;
  font-weight: 700;
  color: #2e3192;
  margin-bottom: 6px;
}
.review-card .stars {
  color: #f5a623;
  font-size: 18px;
  margin-bottom: 10px;
}
.review-card p {
  font-size: 16.5px;
  color: #333;
  line-height: 27px;
  margin: 0;
  text-align: left;
}

/* --- FAQ Section Accordion --- */
.faq-section {
  margin-bottom: 20px;
}
.faq-section h2 {
  font-size: 26px;
  font-weight: 700;
  color: #2e3192;
  border-left: 5px solid #ed1d24;
  padding-left: 14px;
  margin-bottom: 20px;
}
.faq-item {
  border: 1px solid #e0e6f8;
  border-radius: 8px;
  margin-bottom: 14px;
  background: #ffffff;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.faq-item[open] {
  border-color: #2e3192;
  box-shadow: 0 5px 16px rgba(46,49,146,0.12);
}
.faq-question {
  background: #f8f9fe;
  padding: 16px 20px;
  font-size: 16.5px;
  font-weight: 700;
  color: #2e3192;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  transition: background 0.25s ease, color 0.25s ease;
}
.faq-question::-webkit-details-marker {
  display: none;
}
.faq-question::after {
  content: '▼';
  font-size: 12px;
  color: #ed1d24;
  margin-left: 15px;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}
.faq-item[open] .faq-question::after {
  transform: rotate(180deg);
}
.faq-question:hover {
  background: #2e3192;
  color: #ffffff;
}
.faq-question:hover::after {
  color: #ffffff;
}
.faq-answer {
  padding: 18px 22px;
  font-size: 16.5px;
  color: #333;
  line-height: 28px;
  background: #ffffff;
  border-top: 1px solid #e0e6f8;
}

/* --- Section Divider --- */
.section-divider {
  border: none;
  border-top: 1px solid #e5e9f8;
  margin: 28px 0;
}

/* --- Floating Mobile TOC Button & Drawer (< 992px) --- */
#tocFloatBtn {
  display: none;
}
.mobile-toc-drawer {
  display: none;
}

/* --- Responsive Media Queries --- */
@media (max-width: 991px) {
  .market-layout {
    flex-direction: column;
  }
  .market-sidebar {
    display: none !important;
  }

  /* Floating Left TOC Button (< 992px) - Mirror of Chat with Us */
  #tocFloatBtn {
    display: flex !important;
    align-items: center;
    gap: 6px;
    position: fixed;
    bottom: 10px;
    left: 10px;
    z-index: 999 !important;
    background-color: #2e3192;
    color: #ffffff;
    padding: 10px 20px;
    border: 2px solid #ffffff;
    cursor: pointer;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease, background-color 0.2s ease;
  }
  #tocFloatBtn:hover, #tocFloatBtn:active {
    background-color: #ed1d24;
    transform: scale(1.05);
  }
  #tocFloatBtn .toc-icon {
    font-size: 16px;
  }

  /* Mobile Drawer Overlay */
  .mobile-toc-drawer {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }
  .mobile-toc-drawer.active {
    opacity: 1;
    pointer-events: auto;
  }

  /* Mobile Drawer Bottom Sheet */
  .mobile-toc-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    max-height: 75vh;
    background: #ffffff;
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -6px 28px rgba(0, 0, 0, 0.25);
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.1, 0.9, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  .mobile-toc-drawer.active .mobile-toc-content {
    transform: translateY(0);
  }

  .mobile-toc-header {
    background: linear-gradient(135deg, #03216f 0%, #2e3192 100%);
    color: #ffffff;
    padding: 16px 20px;
    font-size: 17px;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .mobile-toc-close {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #ffffff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 22px;
    line-height: 32px;
    text-align: center;
    cursor: pointer;
    transition: background 0.2s ease;
  }
  .mobile-toc-close:hover {
    background: #ed1d24;
  }
  .mobile-toc-list {
    list-style: none;
    padding: 8px 0;
    margin: 0;
    overflow-y: auto;
    max-height: calc(75vh - 65px);
  }
  .mobile-toc-list li {
    border-bottom: 1px solid #f0f3ff;
  }
  .mobile-toc-list li:last-child {
    border-bottom: none;
  }
  .mobile-toc-list li a {
    display: flex;
    align-items: center;
    padding: 13px 22px;
    font-size: 15px;
    color: #333;
    text-decoration: none;
    font-weight: 600;
  }
  .mobile-toc-list li a:hover, .mobile-toc-list li a:active {
    background: #f0f3ff;
    color: #ed1d24;
  }
}
@media (max-width: 767px) {
  .hedding-tittle h1 { font-size: 24px; padding: 10px 15px; }
  .market-main h2 { font-size: 22px; }
  .review-cards { flex-direction: column; }
  .review-card { width: 100%; }
  .app-grid, .feature-grid { grid-template-columns: 1fr; }
}
