/* ==========================================================================
   LeoVegas Landing Page Stylesheet
   Clean, Semantic, Mobile-First Responsive Architecture
   ========================================================================== */

/* --- 1. CSS Reset & Typography --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Oxygen, Ubuntu, Cantarell, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  background-color: #F7F7F7;
  color: rgba(0, 0, 0, 0.87);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
}

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

button, input {
  font-family: inherit;
  font-size: inherit;
}

/* --- 2. Top Bar: Panic Button (Responsible Gaming) --- */
.top-bar-panic {
  background-color: #1A1A1A;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 16px;
  width: 100%;
}

.panic-container {
  display: flex;
  align-items: center;
}

.panic-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background-color: #E60000;
  border-radius: 50%;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.panic-btn:hover {
  opacity: 0.88;
}

.panic-icon {
  width: 20px;
  height: 20px;
  display: inline-block;
  background: url('../assets/images/icon-panic.svg') center center / contain no-repeat;
}

/* --- 3. Main Navigation Bar --- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  height: 56px;
  background: radial-gradient(100% 104px at 0 calc(100% + 56px), #F18825, #E40);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.navbar-inner {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
}

/* Centered LeoVegas Logo */
.navbar-logo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  text-decoration: none;
}

.navbar-logo .logo-img {
  height: 30px;
  width: auto;
}

/* Right Navbar Actions & Responsive Register Button */
.navbar-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
}

.btn-register {
  background-color: #1DAA63;
  color: #FFF;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 700;
  text-transform: uppercase;
  transition: background-color 0.2s ease, transform 0.1s ease;
  cursor: pointer;
  
  height: 32px;
  width: auto;
  padding: 0 14px;
}

.btn-register:hover {
  background-color: #199155;
}

.btn-register:active {
  transform: scale(0.97);
}

.btn-register-text {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0.35px;
  white-space: nowrap;
}

.btn-register-icon {
  display: none;
}

/* Desktop Navbar Breakpoint: Show text, hide icon */
@media screen and (min-width: 1024px) {
  .navbar {
    height: 64px;
  }
  .navbar-logo .logo-img {
    height: 38px;
  }
  .btn-register {
    width: auto;
    height: 38px;
    padding: 0 20px;
  }
  .btn-register-text {
    display: inline-block;
  }
  .btn-register-icon {
    display: none;
  }
}

/* --- 4. Sub Navigation Tabs --- */
.subnav-tabs {
  background-color: #FFF;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  width: 100%;
}

.subnav-list {
  list-style: none;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  padding: 0 16px;
  gap: 24px;
}

.subnav-item {
  position: relative;
}

.subnav-link {
  display: block;
  padding: 12px 4px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.6);
  text-decoration: none;
  transition: color 0.2s ease;
}

.subnav-item.active .subnav-link {
  color: #E40;
  font-weight: 700;
}

.subnav-item.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background-color: #E40;
}

/* --- 5. Main Content Area --- */
.main-content {
  flex: 1;
  width: 100%;
}

.content-wrapper {
  max-width: 680px;
  margin: 0 auto;
  padding: 20px 16px 40px;
}

@media screen and (min-width: 1024px) {
  .content-wrapper {
    padding: 32px 0 56px;
  }
}

.page-header {
  margin-bottom: 20px;
}

.page-title {
  font-size: 24px;
  font-weight: 900;
  color: rgba(0, 0, 0, 0.87);
  line-height: 1.25;
}

@media screen and (min-width: 1024px) {
  .page-title {
    font-size: 30px;
  }
}

/* --- 7. Offer Cards Architecture --- */
.offer-cards-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.offer-card {
  background: #FFF;
  border-radius: 12px;
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

.offer-card:hover {
  box-shadow: 0 20px 36px rgba(0, 0, 0, 0.12);
}

.card-inner {
  position: relative;
}

.card-badge {
  background: linear-gradient(90deg, #F58349, #FD5C3C);
  color: #FFF;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 6px 16px;
  line-height: 20px;
  letter-spacing: 0.5px;
}

.card-banner-img {
  width: 100%;
  display: block;
}

.card-content-area {
  padding: 16px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.card-legal-terms {
  font-size: 12px;
  color: rgba(0, 0, 0, 0.54);
  line-height: 1.4;
  margin-bottom: 6px;
}

.card-headline {
  font-size: 19px;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.87);
  margin: 6px 0 12px;
  line-height: 1.35;
}

/* Expandable Content Container */
.card-expandable-wrap {
  position: relative;
  overflow: hidden;
}

.card-expandable-content {
  font-size: 14px;
  line-height: 1.55;
  color: rgba(0, 0, 0, 0.72);
  max-height: 85px;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.card-expandable-content p {
  margin-bottom: 10px;
}

.card-expandable-content ul {
  padding-left: 20px;
  margin: 10px 0;
}

.card-expandable-content li {
  margin-bottom: 6px;
}

.card-expandable-content a {
  color: #E40;
  font-weight: 700;
  text-decoration: underline;
}

.steps-img-wrap {
  margin: 14px 0;
}

.steps-img {
  border-radius: 6px;
  width: 100%;
}

/* Fade Gradient Overlay (Hides text below 85px when closed) */
.card-fade-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 56px;
  background: linear-gradient(rgba(255, 255, 255, 0), #FFF);
  pointer-events: none;
  transition: opacity 0.2s ease;
}

/* Chevron Toggle Arrow */
.card-accordion-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 44px;
  margin-top: 4px;
}

.chevron-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
}

.chevron-icon svg {
  transform: rotate(90deg);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: rgba(0, 0, 0, 0.54);
}

/* Full Terms Disclosure (Hidden by default, shown when open) */
.card-terms-full {
  display: none;
  margin-top: 0;
  padding: 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  color: rgba(0, 0, 0, 0.7);
}

.card-terms-full h4.terms-title {
  font-size: 16px;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.87);
  margin: 0 0 12px;
}

.card-terms-full .terms-text p {
  margin: 0 0 8px;
}

.card-terms-full .terms-text p:last-child { margin-bottom: 0; }

.card-terms-full .terms-text ul {
  padding-left: 20px;
  margin: 0;
}

.card-terms-full .terms-text li {
  margin-bottom: 8px;
}

.card-terms-full .terms-text li:last-child { margin-bottom: 0; }

/* --- Card OPEN States --- */
.offer-card.is-open .card-expandable-content {
  max-height: 2000px !important;
  overflow: visible !important;
}

.offer-card.is-open .card-fade-overlay {
  display: none !important;
}

.offer-card.is-open .chevron-icon svg {
  transform: rotate(270deg) !important;
}

.offer-card.is-open .card-terms-full {
  display: block !important;
}

/* Card CTA Action Button */
.card-divider {
  border: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  margin: 0;
}

.card-cta-row {
  padding: 16px;
}

.btn-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 48px;
  background-color: #1DAA63;
  color: #FFF;
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn-cta:hover {
  background-color: #199155;
}

.btn-cta:active {
  transform: scale(0.99);
}

/* Bonus Info Button */
.btn-info-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #FFF;
  border-radius: 8px;
  padding: 16px 20px;
  text-decoration: none;
  color: rgba(0, 0, 0, 0.87);
  font-weight: 700;
  font-size: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: background-color 0.2s ease;
}

.btn-info-link:hover {
  background-color: #FBFBFB;
}

/* --- 8. Footer Section --- */
.site-footer {
  background-color: #262626;
  color: rgba(255, 255, 255, 0.7);
  padding: 40px 16px 64px;
  font-size: 13px;
  line-height: 1.6;
}

.footer-container {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.footer-logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.footer-logo-img {
  height: 42px;
  width: auto;
}

.footer-social-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.footer-blog-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #FFF;
  text-decoration: none;
  font-weight: 500;
}

.footer-social-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background-color: rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.social-icon:hover {
  background-color: rgba(255, 255, 255, 0.24);
}

.footer-divider {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin: 24px 0;
}

/* Payment Icons Sprite */
.footer-payments-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.payment-icon {
  background-repeat: no-repeat;
  background-image: url('../assets/images/payments-sprite.png');
  background-size: 692.5px 686.5px;
  display: inline-block;
}

.icon-paypal { background-position: -200.5px -601.5px; height: 16px; width: 58px; }
.icon-paysafecard { background-position: -288.5px -507.5px; height: 16px; width: 94px; }
.icon-sofort { background-position: -316.5px -601.5px; height: 14px; width: 62px; }
.icon-skrill { background-position: -164.5px -619.5px; height: 14px; width: 39px; }
.icon-visa { background-position: -84px -619.5px; height: 20px; width: 35.5px; }
.icon-mastercard { background-position: -663px -502px; height: 20px; width: 26.5px; }
.icon-trustly { background-position: -433.5px -601.5px; height: 12px; width: 58px; }

/* Apps Link */
.footer-apps-row {
  display: flex;
  justify-content: center;
}

.footer-apps-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #FFF;
  text-decoration: none;
  font-weight: 500;
}

/* Regulatory Logos */
.footer-regulatory-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
}

.ggl-badge svg {
  height: 48px;
  width: auto;
}

.eighteen-plus-icon {
  color: #FFF;
}

/* Legal Disclaimers */
.footer-legal-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

.footer-legal-section a {
  color: #F58249;
  text-decoration: underline;
}

/* Layout and component dimensions from the supplied LeoVegas page. */
body { background: #f2f2f2; }

.top-bar-panic {
  height: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  background: #fff;
  justify-content: flex-start;
}
.panic-btn { width: 20px; height: 20px; background: none; }
.panic-icon { width: 20px; height: 20px; }

.navbar {
  position: relative;
  top: auto;
  max-width: 1200px;
  margin: 0 auto;
  height: 56px;
  background: #f50;
  box-shadow: none;
}
.navbar-inner { max-width: none; padding: 0 24px; }
.navbar-logo { left: 58px; height: 100%; transform: translateY(-50%); }
.navbar-logo .logo-img.logo-desktop { display: block; height: 44px; width: auto; }
.navbar-logo .logo-img.logo-mobile { display: none; }
.navbar-actions { gap: 14px; }
.btn-register { background: #1da95e; height: 32px; width: auto; padding: 0 14px; }
.btn-register-text { display: inline; font-size: 14px; }
.btn-register-icon { display: none; }

.subnav-tabs {
  position: absolute;
  top: 30px;
  left: calc(50% + 215px);
  z-index: 101;
  width: auto;
  height: 56px;
  background: none;
  border: 0;
}
.subnav-list { height: 100%; align-items: center; gap: 24px; padding: 0; }
.subnav-link, .subnav-item.active .subnav-link { color: #fff; font-size: 16px; font-weight: 700; text-transform: uppercase; }
.subnav-item.active::after { display: none; }

.main-content { max-width: 1200px; margin: 0 auto; background: #f7f7f7; }
.content-wrapper { max-width: 1200px; padding: 14px 14px 30px; }
.page-header { margin: 24px 0; }
.page-title { font-size: 32px; font-weight: 700; line-height: 1.25; }
.offer-cards-list { display: flex; flex-direction: row; flex-wrap: wrap; justify-content: space-between; gap: 0; }
.offer-card {
  width: calc(50% - 22px);
  min-width: 0;
  height: fit-content;
  margin-bottom: 44px;
  border-radius: 12px;
  box-shadow: 0 16px 28px rgba(0, 0, 0, .08);
}
.offer-card:hover { box-shadow: 0 16px 28px rgba(0, 0, 0, .08); }
.card-badge { padding: 0 16px; height: 32px; font-size: 14px; line-height: 32px; letter-spacing: 0; }
.card-content-area { padding: 0; min-height: 193px; }
.offer-card:nth-child(2) .card-content-area { min-height: 185px; }
.card-legal-terms { margin: 8px 16px -8px; font-size: 12px; line-height: 12px; letter-spacing: -.8px; color: #666; white-space: nowrap; overflow: hidden; }
.card-headline { margin: 16px 16px 4px; font-size: 20px; line-height: 1; }
.card-expandable-wrap { margin: 4px 16px 0; }
.card-expandable-content { max-height: 85px; font-size: 16px; font-weight: 700; line-height: 1.2; color: rgba(0,0,0,.7); }
.card-expandable-content p { margin-bottom: 12px; }
.card-expandable-content p:first-child { margin-top: 4px; }
.card-accordion-toggle { height: 52px; width: calc(100% - 32px); margin: 0 16px; border: 0; background: transparent; cursor: pointer; }
.card-accordion-toggle:focus-visible, .btn-cta:focus-visible, .btn-register:focus-visible { outline: 2px solid #222; outline-offset: 2px; }
.chevron-icon { width: 32px; height: 32px; }
.chevron-icon svg { color: #222; }
.card-cta-row { height: 64px; margin: 0 16px; padding: 0; display: flex; align-items: center; justify-content: flex-end; }
.btn-cta { width: auto; height: 36px; padding: 0 18px; background: #f50; font-size: 16px; letter-spacing: 0; }
.btn-cta:hover { background: #e40; }
.btn-info-link {
  width: 100%;
  height: 46px;
  padding: 0;
  justify-content: center;
  gap: 3px;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  text-transform: uppercase;
  font-size: 14px;
  color: #000;
}
.btn-info-link:hover { background: transparent; }
.btn-info-link svg { width: 14px; color: #e40; }

.site-footer { max-width: 1200px; width: 100%; margin: 0 auto; padding: 16px 24px 48px; background: #3e3e3e; }
@media (max-width: 1023px) {
  .subnav-tabs { display: none; }
  .navbar-logo { left: 50%; transform: translate(-50%, -50%); }
  .navbar-logo .logo-img.logo-desktop { display: none; }
  .navbar-logo .logo-img.logo-mobile { display: block; height: 48px; }
  .navbar-inner { padding: 0 16px; }
  .navbar-actions { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); }
  .content-wrapper { padding: 14px; }
}

@media (min-width: 1024px) {
  .navbar { height: 80px; }
  .navbar-logo { left: 58px; }
  .navbar-logo .logo-img.logo-desktop { height: 44px; }
  .content-wrapper { padding: 14px 14px 30px; }
  .page-title { font-size: 32px; }
}

@media (min-width: 640px) and (max-width: 1023px) {
  .offer-card { width: calc(50% - 12px); }
}

@media (max-width: 639px) {
  .top-bar-panic { padding-left: 14px; }
  .navbar { height: 56px; }
  .btn-register {
    width: auto;
    height: 32px;
    padding: 0 14px;
    background: #1da95e;
    border-radius: 4px;
  }
  .btn-register-text {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.35px;
    color: #fff;
    white-space: nowrap;
  }
  .btn-register-icon {
    display: none;
  }
  .offer-card { width: 100%; margin-bottom: 44px; }
  .card-content-area { min-height: 160px; }
  .offer-card:nth-child(2) .card-content-area { min-height: 160px; }
  .btn-info-link { margin-top: -12px; }
}
