/* HR Summit Baku — site overrides (loaded after main.css + hrsummit.css; theme files stay untouched) */

/* Bug ledger #11: clip horizontal overflow on html AND body. */
html, body { overflow-x: hidden; }

/* Single-slide hero (no Swiper): keep the slide full width. */
.hrs-hero-static .swiper-wrapper { display: block; }
.hrs-hero-static .swiper-slide { width: 100%; }

/* Anchor jumps land below the sticky header. */
html { scroll-behavior: smooth; }
main [id], footer [id] { scroll-margin-top: 90px; }

/* ---------- pkg2 ---------- */

/* Sponsor groups: small centred heading with hairlines above each logo row. */
.hrs-sponsor-group + .hrs-sponsor-group { margin-top: 26px; }
.hrs-sponsor-group-title {
  display: flex; align-items: center; gap: 18px; margin: 0 0 24px;
  font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--hs-sage-d, #2f7552);
}
.hrs-sponsor-group-title::before, .hrs-sponsor-group-title::after { content: ""; flex: 1; height: 1px; background: var(--hs-line, #d4e5d9); }
.hrs .td-brands-item a:not([href]) { cursor: default; }

/* Inner-page banner: brand gradient + the slowly turning mark, like the hero. */
.hrs-page-banner { position: relative; overflow: hidden; }
.hrs-page-banner .container { position: relative; z-index: 2; }
.hrs-page-banner-mark {
  position: absolute; right: -80px; top: 50%; width: 420px; opacity: .12; pointer-events: none; z-index: 1;
  transform: translateY(-50%); animation: hrsSpin 90s linear infinite;
}
.hrs-page-banner .td-breadcrumb-title { text-transform: none; letter-spacing: -.02em; }
.hrs-page-banner .td-breadcrumb-list a:hover { color: var(--hs-sage, #97c9a6); }
@media (max-width: 767px) { .hrs-page-banner-mark { width: 260px; right: -110px; } }

/* Speaker detail: keep the photo card compact and the info list readable. */
.hrs-speaker-detail .td-team-details-info { margin-right: 0; }
.hrs-speaker-detail .td-team-details-info .links { word-break: break-word; }
.hrs-speaker-detail .td-team-details-content p { line-height: 1.7; }
@media (max-width: 991px) { .hrs-speaker-detail .td-team-details-content { margin-left: 0; margin-top: 10px; } }

/* Session title / speaker name links inherit the theme colours. */
.td-schedule-3-title a, .td-schedule-3-user-wrap .name a { color: inherit; }
.td-schedule-3-title a:hover, .td-schedule-3-user-wrap .name a:hover { color: var(--hs-sage-d, #2f7552); }
.td-schedule-team-name .dates { text-transform: none; }

/* ---------- pkg3 ---------- */

/* News detail: CKEditor output inside the theme. */
.hrs-news-detail .td-blog-title { font-size: 34px; line-height: 1.25; }
@media (max-width: 767px) { .hrs-news-detail .td-blog-title { font-size: 26px; } }
.hrs-news-tag { display: inline-block; padding: 2px 12px; border-radius: 20px; font-size: 13px; font-weight: 600;
  background: var(--hs-mint, #e3f0e7); color: var(--hs-forest, #0f3b30); }
.hrs-richtext { color: #4a5b56; font-size: 17px; line-height: 1.75; }
.hrs-richtext > * + * { margin-top: 1em; }
.hrs-richtext h2, .hrs-richtext h3, .hrs-richtext h4 { color: var(--hs-ink, #061f1a); margin-top: 1.4em; }
.hrs-richtext img { max-width: 100%; height: auto; border-radius: 14px; }
.hrs-richtext figure { margin: 1.4em 0; }
.hrs-richtext figure.image-style-side { float: right; max-width: 50%; margin: 0 0 1em 1.5em; }
.hrs-richtext figcaption { font-size: 14px; color: #6b7c77; text-align: center; margin-top: 6px; }
.hrs-richtext table { width: 100%; border-collapse: collapse; }
.hrs-richtext td, .hrs-richtext th { border: 1px solid var(--hs-line, #d4e5d9); padding: 8px 12px; }
.hrs-richtext blockquote { border-left: 4px solid var(--hs-sage, #97c9a6); padding: 6px 0 6px 18px; font-style: italic; }
.hrs-richtext a { color: var(--hs-sage-d, #2f7552); text-decoration: underline; }
.hrs-richtext ul, .hrs-richtext ol { padding-left: 1.4em; }
.hrs-richtext ul { list-style: disc; } .hrs-richtext ol { list-style: decimal; }
.hrs-richtext li { list-style: inherit; display: list-item; margin-bottom: .3em; }
.hrs-news-detail .td-blog-post-thumb img { width: 90px; height: 70px; object-fit: cover; border-radius: 10px; }

/* News card titles are links now. */
.td-blog-title a { color: inherit; }
.td-blog-title a:hover { color: var(--hs-sage-d, #2f7552); }

/* Participant cards: one height per row/slider (the tallest card wins); the person row sits at the bottom. */
#participants .swiper-slide { height: auto; }
#participants .td-testimonial-4-item { display: flex; flex-direction: column; height: 100%; }
#participants .td-testimonial-4-avatar-wrap { margin-top: auto; }

/* Hero mark turns counter-clockwise. */
.hrs-v1 .hrs-hero-mark { animation-direction: reverse; }

/* Ticket package closed in admin ("Satış" off): stays on the page, can't be bought. */
.hrs-closed .td-pricing-4-price > :not(.hrs-btn-closed), .hrs-closed .td-pricing-4-feature { opacity: .5; }
.hrs-final .hrs-v3 .hrs-tickets-light .hrs-closed .td-pricing-4-item:hover { background: #fff; border-color: var(--hs-line); transform: none; box-shadow: none; }
.hrs-final .hrs-v3 .hrs-tickets-light .hrs-featured.hrs-closed .td-pricing-4-item:hover { background: var(--hs-mint); border-color: var(--hs-sage); }
.hrs-final .hrs-v3 .hrs-tickets-light .hrs-closed .td-pricing-4-item:hover .subtitle,
.hrs-final .hrs-v3 .hrs-tickets-light .hrs-closed .td-pricing-4-item:hover .price,
.hrs-final .hrs-v3 .hrs-tickets-light .hrs-closed .td-pricing-4-item:hover li span { color: var(--hs-ink); }
.hrs-final .hrs-v3 .hrs-tickets-light .hrs-closed .td-pricing-4-item:hover .text { color: #4a5b56; }
.hrs-final .hrs-v3 .hrs-tickets-light .hrs-closed .td-pricing-4-item:hover li svg { color: var(--hs-sage-d); }
.hrs-final .hrs-v3 .hrs-tickets-light .hrs-closed .td-pricing-4-item:hover .td-pricing-4-price { border-color: var(--hs-line) !important; }
.hrs .hrs-btn-closed, .hrs .hrs-btn-closed:hover, .hrs .hrs-btn-closed:focus {
  position: relative; background: #e6ebe9 !important; color: #6f7d78 !important; box-shadow: none !important;
  cursor: not-allowed; outline: none;
}
.hrs .hrs-btn-closed .fa-ban { color: #c62828; margin-right: 8px; font-size: 15px; vertical-align: -1px; }
.hrs .hrs-btn-closed::after {
  content: attr(data-msg); position: absolute; left: 50%; bottom: calc(100% + 10px); transform: translate(-50%, 4px);
  width: max-content; max-width: 260px; white-space: normal; text-align: center;
  background: #c62828; color: #fff; font-size: 13px; font-weight: 500; line-height: 1.45; letter-spacing: 0; text-transform: none;
  padding: 8px 12px; border-radius: 8px; box-shadow: 0 10px 24px -12px rgba(0,0,0,.45);
  opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 5;
}
.hrs .hrs-btn-closed:hover::after, .hrs .hrs-btn-closed:focus::after { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* Top menu one pixel larger (13→14px; 12→13px on 1200–1399px screens). */
.hrs .tdmenu__navbar-wrap > ul > li > a { font-size: 14px; }
@media (min-width: 1200px) and (max-width: 1399px) { .hrs .tdmenu__navbar-wrap > ul > li > a { font-size: 13px; } }

/* Speaker flags before the country name (card + detail page). */
.hrs .hrs-flag { display: inline-block; width: 20px; height: 15px; object-fit: cover; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.12); vertical-align: -2px; margin-right: 6px; }
.hrs .hrs-country .hrs-flag { margin-right: 0; }
.hrs .hrs-country.has-flag::before { display: none; }

/* Haqqımızda inner page: text column max 900px. */
.hrs .hrs-container-narrow { max-width: 900px; }
.hrs-richtext::after { content: ""; display: table; clear: both; }

/* Speaker cards: same height across a row. When a position wraps to more lines,
   the extra space goes under the country line, so the photos stay aligned. */
.hrs-team-col { display: flex; flex-direction: column; }
.hrs-team-col > .hrs-team-card { flex: 1 0 auto; display: flex; flex-direction: column; }
.hrs-team-col > .hrs-team-card > .td-team-content { flex: 1 0 auto; }

/* Satış qaydaları modal (before buying a ticket). */
.hrs-terms-modal .modal-content { border: 0; border-radius: 22px; overflow: hidden; }
.hrs-terms-modal .modal-header { align-items: flex-start; padding: 26px 30px 18px; border-bottom: 1px solid var(--hs-line, #d4e5d9); background: var(--hs-mist, #f2f8f4); }
.hrs-terms-modal .modal-title { font-size: 24px; margin-bottom: 6px; color: var(--hs-ink, #061f1a); }
.hrs-terms-modal .hrs-terms-package { font-size: 15px; color: #4a5b56; }
.hrs-terms-modal .hrs-terms-package strong { color: var(--hs-ink, #061f1a); }
.hrs-terms-modal .modal-body { padding: 24px 30px; }
.hrs-terms-modal .hrs-richtext { font-size: 15px; line-height: 1.7; }
.hrs-terms-modal .hrs-richtext h3 { font-size: 18px; }
.hrs-terms-modal .modal-footer { justify-content: space-between; gap: 14px; padding: 18px 30px 22px; border-top: 1px solid var(--hs-line, #d4e5d9); }
.hrs-terms-agree { display: flex; align-items: flex-start; gap: 10px; margin: 0; cursor: pointer; font-size: 15px; font-weight: 600; color: var(--hs-ink, #061f1a); max-width: 420px; }
.hrs-terms-agree input { width: 20px; height: 20px; margin-top: 1px; flex: 0 0 auto; accent-color: var(--hs-sage-d, #2f7552); cursor: pointer; }
.hrs-terms-actions { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.hrs-terms-cancel { background: none; border: 0; font-weight: 600; color: #6f7d78; padding: 6px 4px; }
.hrs-terms-cancel:hover { color: var(--hs-ink, #061f1a); }
.hrs .hrs-terms-go.is-disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.hrs .hrs-terms-go.is-disabled:hover { background: var(--hs-sage); color: var(--hs-ink); }
@media (max-width: 575px) {
  .hrs-terms-modal .modal-header, .hrs-terms-modal .modal-body, .hrs-terms-modal .modal-footer { padding-left: 18px; padding-right: 18px; }
  .hrs-terms-actions { width: 100%; justify-content: space-between; }
}

/* Program PDF download button under the program tabs. */
.hrs .hrs-btn-pdf {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 24px; border-radius: 40px;
  border: 1px solid var(--hs-line, #d4e5d9); background: #fff; color: var(--hs-ink, #061f1a);
  font-weight: 600; font-size: 15px; line-height: 1.2; box-shadow: 0 10px 24px -18px rgba(6,31,26,.45);
  transition: background .3s, color .3s, border-color .3s;
}
.hrs .hrs-btn-pdf i { font-size: 20px; color: #c62828; transition: color .3s; }
.hrs .hrs-btn-pdf small { font-size: 12px; font-weight: 600; color: #6f7d78; padding-left: 10px; border-left: 1px solid var(--hs-line, #d4e5d9); transition: color .3s, border-color .3s; }
.hrs .hrs-btn-pdf:hover { background: var(--hs-ink, #061f1a); border-color: var(--hs-ink, #061f1a); color: #fff; }
.hrs .hrs-btn-pdf:hover i { color: var(--hs-sage, #97c9a6); }
.hrs .hrs-btn-pdf:hover small { color: rgba(255,255,255,.7); border-color: rgba(255,255,255,.25); }
