/* =================================================================
   Hugo Custom CSS for Helpass
   ================================================================= */

/* -----------------------------------------------------------------
   1. HEADER    
   ----------------------------------------------------------------- */

/* Speed up sticky header slide-in (was 1s) */
.sticky-header {
  -webkit-transition: all 0.35s !important;
  transition: all 0.35s !important;
}

/* Constrain sticky header to page content width (remove giant side padding) */
.wpo-site-header .navigation.sticky-header {
  padding: 0 !important;
}

/* CTA button: visible and bigger on mobile */
@media (max-width: 767px) {
  .wpo-site-header .header-right .close-form .theme-btn,
  .wpo-site-header .header-right .close-form .view-cart-btn {
    display: inline-block !important;
    padding: 10px 18px !important;
    font-size: 13px !important;
    white-space: nowrap;
  }
}

.header-right .close-form {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

/* -----------------------------------------------------------------
   2. GLOBAL TABLE STYLES
      - Full-width on desktop
      - Horizontally scrollable on mobile
      - Applied via a wrapper <div class="hp-table-wrap"> added by
        the render-image hook, OR via the article/hp-content selector
   ----------------------------------------------------------------- */

/* Wrapper approach for guaranteed scroll */
.hp-table-scroll {
  width: 100%;
  overflow: hidden;
  margin-bottom: 1.5rem;
  border-radius: 8px;
}

.hp-table-inner {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Table inside wrapper */
.hp-table-scroll table {
  min-width: 100%;
  border-collapse: collapse;
  display: table !important;
  width: 100% !important;
  border: none;
}

/* Selectors for tables rendered directly in content (before JS wraps them) */
article table,
.hp-content table {
  width: 100%;
  border-collapse: collapse;
  table-layout: auto;
  border: none;
  margin-bottom: 1.5rem;
}

article table th,
article table td,
.hp-table-scroll table th,
.hp-table-scroll table td,
.hp-content table th,
.hp-content table td {
  padding: 10px 14px;
  border: 1px solid #e8eaf0;
  white-space: normal;
}

article table th,
.hp-table-scroll table th,
.hp-content table th {
  white-space: nowrap;
}

article table thead th,
.hp-table-scroll table thead th,
.hp-content table thead th {
  background-color: #ff965f;
  color: #fff;
  font-weight: 600;
}

article table thead th strong,
.hp-table-scroll table thead th strong,
.hp-content table thead th strong {
  color: #fff;
  font-weight: 600;
}

article table tbody tr:nth-child(even) td,
.hp-table-scroll table tbody tr:nth-child(even) td,
.hp-content table tbody tr:nth-child(even) td {
  background-color: #f9f9fb;
}

/* Force nowrap on mobile so horizontal scrolling makes sense */
@media (max-width: 767px) {
  article table th,
  article table td,
  .hp-table-scroll table th,
  .hp-table-scroll table td,
  .hp-content table th,
  .hp-content table td {
    white-space: nowrap;
  }
}

/* -----------------------------------------------------------------
   3. CASINO LOGOS — one row, centred on mobile, per-logo sizing
   ----------------------------------------------------------------- */

.hp-footer-logos-wrap {
  display: flex;
  justify-content: flex-end;
}

.hp-casino-logos {
  list-style: none;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 12px;
  padding: 6px 12px;
  margin: 0;
  justify-content: flex-end;
}

.hp-casino-logos li {
  flex-shrink: 1;
  min-width: 0;
  display: flex;
  align-items: center;
}

.hp-casino-logos li img {
  display: block;
  width: auto;
  height: auto;
}

/* Per-logo size caps — desktop */
.hp-logo-atp     { max-height: 20px; max-width: 16.25px; }
.hp-logo-nhl     { max-height: 20px; max-width: 20px; }
.hp-logo-wta     { max-height: 20px; max-width: 31.43px; }
.hp-logo-itf     { max-height: 20px; max-width: 45.71px; }
.hp-logo-fiba    { max-height: 20px; max-width: 45.71px; }
.hp-logo-ufc     { max-height: 20px; max-width: 60px; }
.hp-logo-fifa    { max-height: 20px; max-width: 62.86px; }
.hp-logo-uefa    { max-height: 20px; max-width: 51.43px; }
.hp-logo-mga     { max-height: 20px; max-width: 64.44px; }
.hp-logo-gamcare { max-height: 20px; max-width: 70px; }
.hp-logo-dmca    { max-height: 20px; max-width: 101.23px; }

@media (max-width: 991px) {
  .hp-footer-logos-wrap { justify-content: center; margin-top: 6px; }
  .hp-casino-logos { justify-content: center; gap: 10px; }
}
@media (max-width: 767px) {
  .hp-logo-atp     { max-height: 15px; max-width: 12.19px; }
  .hp-logo-nhl     { max-height: 15px; max-width: 15px; }
  .hp-logo-wta     { max-height: 15px; max-width: 23.57px; }
  .hp-logo-itf     { max-height: 15px; max-width: 34.28px; }
  .hp-logo-fiba    { max-height: 15px; max-width: 34.28px; }
  .hp-logo-ufc     { max-height: 15px; max-width: 45px; }
  .hp-logo-fifa    { max-height: 15px; max-width: 47.14px; }
  .hp-logo-uefa    { max-height: 15px; max-width: 38.57px; }
  .hp-logo-mga     { max-height: 15px; max-width: 48.33px; }
  .hp-logo-gamcare { max-height: 15px; max-width: 52.50px; }
  .hp-logo-dmca    { max-height: 15px; max-width: 75.92px; }
}

/* Mobile ≤575px: same as tablet but allow wrap */
@media (max-width: 575px) {
  .hp-casino-logos { gap: 8px; padding: 4px 8px; flex-wrap: wrap; justify-content: center; }
}

/* -----------------------------------------------------------------
   4. HERO BANNER
   ----------------------------------------------------------------- */
.hp-hero-banner {
  background: #ff965f !important;
  background-image: none !important;
  min-height: 0 !important;
  padding: 28px 0 !important;
  width: 100%;
  margin: 0;
}

.hp-hero-banner::before {
  display: none !important;
}

.hp-hero-banner .wpo-breadcumb-wrap h2 {
  color: #fff !important;
  font-size: 32px !important;
  line-height: 1.2 !important;
  margin-bottom: 6px !important;
  text-shadow: 0 1px 3px rgba(0,0,0,0.25);
}

/* h1 variant — breadcrumbs.html now outputs h1 */
.hp-hero-banner .wpo-breadcumb-wrap h1 {
  color: #fff !important;
  font-size: 32px !important;
  line-height: 1.2 !important;
  margin-bottom: 6px !important;
  text-shadow: 0 1px 3px rgba(0,0,0,0.25);
}

.hp-hero-banner .wpo-breadcumb-wrap ol li,
.hp-hero-banner .wpo-breadcumb-wrap ol li a {
  color: rgba(255,255,255,0.9) !important;
  font-size: 15px !important;
}

.hp-hero-banner .wpo-breadcumb-wrap ol li a:hover { color: #fff !important; }
.hp-hero-banner .wpo-breadcumb-wrap ol li:last-child span { color: rgba(255,255,255,0.7) !important; }
.hp-hero-banner .wpo-breadcumb-wrap ol li:after { background: rgba(255,255,255,0.6) !important; }

.hp-hero-banner .wpo-breadcumb-wrap p {
  color: rgba(255,255,255,0.88) !important;
  margin: 0;
  font-size: 15px;
}

@media (max-width: 767px) {
  .hp-hero-banner .wpo-breadcumb-wrap h2,
  .hp-hero-banner .wpo-breadcumb-wrap h1 {
    font-size: 22px !important;
    line-height: 1.3 !important;
  }
  .hp-hero-banner {
    padding: 20px 0 !important;
  }
}

/* -----------------------------------------------------------------
   5. SECTION SPACING
   ----------------------------------------------------------------- */
.wpo-service-single-section.section-padding,
.wpo-contact-pg-section.section-padding {
  padding-top: 36px !important;
}

@media (max-width: 991px) {
  .wpo-service-single-section.section-padding,
  .wpo-contact-pg-section.section-padding {
    padding-top: 28px !important;
  }
}

@media (max-width: 767px) {
  .wpo-service-single-section.section-padding,
  .wpo-contact-pg-section.section-padding {
    padding-top: 24px !important;
  }
}

.section-padding-top {
  padding-top: 30px;
}

/* -----------------------------------------------------------------
   6. CONTENT TYPOGRAPHY
   ----------------------------------------------------------------- */
.hp-content {
  color: #313131;
  line-height: 1.8;
}

.hp-content h1, .hp-content h2, .hp-content h3,
.hp-content h4, .hp-content h5, .hp-content h6 {
  color: #232f4b;
  margin-top: 1.5em;
  margin-bottom: 0.6em;
}

.hp-content p    { margin-bottom: 1.1em; }
.hp-content ul,
.hp-content ol   { padding-left: 1.5em; margin-bottom: 1em; }
.hp-content li   { margin-bottom: 0.4em; }
.hp-content a:not(#PlayButton):not(.toc-content a)    { color: #EF7C40 !important;}
.hp-content a:hover { color: #fff !important; }
.hp-content strong { color: #232f4b; }

.hp-content img,
.hp-content-img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin-bottom: 1rem;
  width: 100%;
}

.hp-content iframe   { max-width: 100%; }

/*
  Demo shortcode: full-width within the content column, with a
  sensible aspect ratio that degrades to a min-height on mobile
  so the iframe is never squished to unusable.
*/
.demo-fullwidth-wrap {
  margin-bottom: 1.5rem;
}

.demo-iframe-container {
  position: relative;
  width: 100%;
  /* 16:9 on desktop */
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 0.5rem;
  background: #000;
}

/* On small screens the 16:9 height gets too short — enforce a min */
@media (max-width: 767px) {
  .demo-iframe-container {
    padding-bottom: 0;
    height: 420px;
  }
}

@media (max-width: 480px) {
  .demo-iframe-container {
    height: 320px;
  }
}

.demo-iframe-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff !important;
}

/* -----------------------------------------------------------------
   7. TOC SHORTCODE
   ----------------------------------------------------------------- */
.toc-container {
  border-left: 4px solid #ff965f !important;
  border-radius: 8px;
  margin-bottom: 2.5rem;
  padding: 0;
  overflow: hidden;
  background: #ff965f;
  box-shadow: 0 2px 12px rgba(33,33,88,0.07);
}

.toc-title {
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  margin: 0 !important;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff !important;
  background: #ff965f !important;
  border-bottom: none;
}

h2.toc-title { margin-top: 0 !important; margin-bottom: 0 !important; }
.toc-title p { color: #fff; }

.toc-header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.toc-header-content p { margin-bottom: 0; }

.toc-toggle-icon {
  width: 18px; height: 18px;
  flex-shrink: 0;
  transition: transform 0.25s;
  filter: brightness(0) invert(1) !important;
}

.toc-content {
  padding: 16px 24px;
}

.toc-content nav ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.toc-content nav ul li {
  margin-bottom: 6px;
  padding-left: 0;
}

.toc-content nav ul li::before {
  content: "›";
  color: #d4323c;
  margin-right: 6px;
  font-weight: bold;
}

.toc-content nav ul ul {
  padding-left: 1.4em;
  margin-top: 4px;
}

.toc-content nav ul ul li::before {
  content: "–";
  color: #d4323c;
  font-weight: normal;
}

.toc-content nav a {
  color: #fff !important;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.toc-content nav a:hover { color: #fff !important; }

/* -----------------------------------------------------------------
   8. FAQ SECTION
   ----------------------------------------------------------------- */
.hp-faq-section {
  margin-top: 2.5rem;
}

.hp-faq-title h2 {
  font-size: 1.6rem;
  color: #232f4b;
  margin-bottom: 1.2rem;
}

.hp-faq-item         { border-bottom: 1px solid #e5e5e5; }
.hp-faq-item-first   { border-top: 1px solid #e5e5e5; }

.hp-faq-question {
  font-size: 1rem;
  font-weight: 600;
  color: #232f4b;
  cursor: pointer;
  padding: 16px 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.hp-faq-question-text { flex: 1; }
.hp-faq-icon {
  flex-shrink: 0;
  font-size: 1.4rem;
  color: #ff965f !important;
  line-height: 1;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Animated +/- using CSS pseudo-elements */
.hp-faq-icon::before,
.hp-faq-icon::after {
  content: '';
  position: absolute;
  background: #ff965f;
  border-radius: 2px;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.hp-faq-icon::before { width: 14px; height: 2px; }
.hp-faq-icon::after  { width: 2px; height: 14px; }

/* When open, collapse the vertical bar to form a − */
.hp-faq-item.hp-faq-open .hp-faq-icon::after {
  transform: rotate(90deg);
  opacity: 0;
}

/*
  Grid trick: animate grid-template-rows from 0fr → 1fr.
  This avoids the max-height jump — the animation is perfectly
  proportional and fast regardless of content height.
*/
.hp-faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              padding-bottom 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding-bottom: 0;
}

.hp-faq-answer-inner {
  overflow: hidden;
  /* Prevents content flash during animation */
  min-height: 0;
}

.hp-faq-item.hp-faq-open .hp-faq-answer {
  grid-template-rows: 1fr;
  padding-bottom: 16px;
}

.hp-faq-answer-inner { color: #313131; line-height: 1.8; }
.hp-faq-answer-inner p:last-child { margin-bottom: 0; }

/* -----------------------------------------------------------------
   9. FOOTER
   ----------------------------------------------------------------- */

/* Keep background image at all sizes */
@media (max-width: 1199px) {
  .wpo-site-footer {
    background: url(../images/footer-bg.png) no-repeat center center / cover !important;
  }
}

@media (max-width: 767px) {
  .wpo-site-footer {
    background: url(../images/footer-bg.png) no-repeat center center / cover !important;
  }
}

/* Reduce oversized upper footer padding */
.wpo-site-footer .wpo-upper-footer {
  padding: 40px 0 !important;
}

@media (max-width: 991px) {
  .wpo-site-footer .wpo-upper-footer {
    padding: 30px 0 0 !important;
  }
  /* Tighten per-col spacing on tablet/mobile */
  .wpo-site-footer .wpo-upper-footer .col {
    min-height: auto !important;
    margin-bottom: 28px !important;
  }
}

/* Logo column: tighter */
.wpo-site-footer .about-widget .logo {
  max-width: 150px;
  margin-bottom: 0 !important;
}

.wpo-site-footer .widget-title {
  margin-bottom: 8px !important;
}

/* ---- Footer text colors ---- */
.wpo-site-footer,
.wpo-site-footer p,
.wpo-site-footer li {
  color: #1E3446 !important;
}

.wpo-site-footer a               { color: #1E3446 !important; text-decoration: none; }
.wpo-site-footer a:hover         { color: #EF7C40 !important; }
.wpo-site-footer .copyright      { color: #fff !important; }

.wpo-site-footer .hp-footer-disclaimer-text {
  opacity: 1 !important;
  color: #4a5568 !important;
}

.wpo-site-footer .hp-footer-disclaimer-label {
  opacity: 1 !important;
  color: #EF7C40 !important;
  font-weight: 700 !important;
}

/* ---- Footer nav links: clean list, hover orange ---- */
.wpo-site-footer .widget-title h3,
.wpo-site-footer .widget-title .hp-footer-nav-title {
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  color: #EF7C40 !important;
  font-family: "Inter", sans-serif !important;
  margin-bottom: 10px !important;
}

.wpo-site-footer .link-widget ul {
  padding: 0;
  margin: 0;
}

.wpo-site-footer .link-widget ul li {
  padding: 0 !important;
  margin-bottom: 8px !important;
  border: none;
  position: relative;
  padding-left: 12px !important;
}

.wpo-site-footer .link-widget ul li::before {
  content: "›";
  position: absolute;
  left: 0;
  color: #EF7C40;
  font-weight: bold;
  line-height: 1.5;
}

.wpo-site-footer .link-widget ul li a {
  color: #1E3446 !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  transition: color 0.2s;
}

.wpo-site-footer .link-widget ul li a:hover {
  color: #EF7C40 !important;
}

.wpo-site-footer .link-widget ul li + li {
  padding-top: 0 !important;
}

/* ---- Footer disclaimers: tighter ---- */
.hp-footer-disclaimer {
  margin-top: 0;
  padding: 10px 0;
  border-bottom: 1px solid rgba(30,52,70,0.10);
}

.hp-footer-disclaimer:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.hp-footer-disclaimer-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 3px;
  text-align: left;
}

.hp-footer-disclaimer-text {
  font-size: 0.86rem;
  line-height: 1.55;
  margin: 0;
  text-align: left;
}

.hp-footer-logo-link  { display: inline-block; }
.hp-footer-logo-img   { max-height: 38px; width: auto; }

/* Centered disclaimers column */
.hp-footer-disclaimers-center {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.hp-footer-disclaimer--centered {
  text-align: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(30,52,70,0.10);
}

.hp-footer-disclaimer--centered:last-child { border-bottom: none; }

.hp-footer-disclaimer--centered .hp-footer-disclaimer-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 3px;
}

.hp-footer-disclaimer--centered .hp-footer-disclaimer-text {
  font-size: 0.86rem;
  line-height: 1.55;
  margin: 0;
}

/* -----------------------------------------------------------------
   10. BREADCRUMBS
   ----------------------------------------------------------------- */
.wpo-breadcumb-wrap ol {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Layout wrapper */
.office-info-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

/* Ensure cards stretch evenly */
.office-info-col {
  display: flex;
}

.office-info-item {
  width: 100%;
  height: 100%;
}
