/**
 * ATF Mahjongg - SEO & Commercial Pages Styling
 * Compatible with Bootstrap 4 & existing dark theme (#242424 / #1e1e1e)
 */

/* Navigation Enhancements */
.navbar-nav .nav-item .nav-link {
  font-weight: 500;
  padding: 10px 14px;
  font-size: 15px;
}
.navbar-nav .nav-item.active .nav-link,
.navbar-nav .nav-item .nav-link:hover {
  color: #EC1659 !important;
}

/* Page Intro & Breadcrumb */
.page_hero_section {
  padding: 140px 0 60px 0;
  background: radial-gradient(circle at top right, rgba(146, 43, 226, 0.15), transparent 60%),
              radial-gradient(circle at bottom left, rgba(236, 22, 89, 0.15), transparent 60%),
              #1a1a1a;
  text-align: center;
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.page_hero_section h1 {
  font-size: 42px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 15px;
}
.page_hero_section h1 span {
  background: linear-gradient(130deg, #EC1659 14.45%, #922BE2 85.28%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.page_hero_section p.lead_text {
  font-size: 18px;
  color: #b5b5b5;
  max-width: 760px;
  margin: 0 auto 20px auto;
  line-height: 1.6;
}
.badge_atf {
  display: inline-block;
  background: rgba(236, 22, 89, 0.15);
  color: #EC1659;
  border: 1px solid rgba(236, 22, 89, 0.4);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 15px;
}

/* Content Sections */
.seo_content_section {
  padding: 70px 0;
  background-color: #242424;
}
.seo_content_section.alt_bg {
  background-color: #1e1e1e;
}
.section_header {
  margin-bottom: 40px;
  text-align: center;
}
.section_header h2 {
  font-size: 32px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
}
.section_header h2 span {
  background: linear-gradient(130deg, #EC1659 14.45%, #922BE2 85.28%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.section_header p {
  color: #b5b5b5;
  max-width: 680px;
  margin: 0 auto;
}

/* Cards & Grid Boxes */
.atf_card {
  background: #1e1e1e;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 30px;
  margin-bottom: 30px;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.atf_card:hover {
  transform: translateY(-5px);
  border-color: rgba(236, 22, 89, 0.5);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.atf_card.featured_card {
  border: 2px solid #EC1659;
  background: linear-gradient(180deg, rgba(236, 22, 89, 0.08) 0%, #1e1e1e 100%);
  position: relative;
}
.popular_ribbon {
  position: absolute;
  top: -12px;
  right: 25px;
  background: linear-gradient(130deg, #EC1659, #922BE2);
  color: #ffffff;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.atf_card h3 {
  color: #ffffff;
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 15px;
}
.atf_card p {
  color: #b5b5b5;
  font-size: 15px;
  line-height: 1.6;
}
.atf_card .price_tag {
  font-size: 36px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 15px;
}
.atf_card .price_tag small {
  font-size: 14px;
  color: #b5b5b5;
  font-weight: normal;
}
.atf_card .feature_list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  flex-grow: 1;
}
.atf_card .feature_list li {
  color: #e0e0e0;
  font-size: 14px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: flex-start;
}
.atf_card .feature_list li i {
  color: #20c997;
  margin-right: 10px;
  font-size: 16px;
  margin-top: 3px;
}

/* Callout Box */
.callout_box {
  background: rgba(146, 43, 226, 0.08);
  border-left: 4px solid #922BE2;
  padding: 20px;
  border-radius: 8px;
  margin: 25px 0;
  color: #d1d1d1;
}
.callout_box.alert_box {
  background: rgba(236, 22, 89, 0.08);
  border-left-color: #EC1659;
}
.callout_box strong {
  color: #ffffff;
}

/* Hand Family Tables */
.rules_table {
  width: 100%;
  border-collapse: collapse;
  margin: 25px 0;
  background: #1e1e1e;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.rules_table th {
  background: #141414;
  color: #ffffff;
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.rules_table td {
  padding: 14px 18px;
  color: #c9c9c9;
  font-size: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  vertical-align: top;
}
.rules_table tr:last-child td {
  border-bottom: none;
}
.rules_table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* City Directory Badge */
.city_status_badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  margin-left: 8px;
}
.city_status_badge.active {
  background: rgba(32, 201, 151, 0.15);
  color: #20c997;
  border: 1px solid rgba(32, 201, 151, 0.4);
}
.city_status_badge.expansion {
  background: rgba(253, 126, 20, 0.15);
  color: #fd7e14;
  border: 1px solid rgba(253, 126, 20, 0.4);
}
.city_status_badge.remote {
  background: rgba(146, 43, 226, 0.15);
  color: #922BE2;
  border: 1px solid rgba(146, 43, 226, 0.4);
}

/* Button & Action Link Styling */
.btn_atf_primary {
  display: inline-block;
  background: linear-gradient(130deg, #EC1659 14.45%, #922BE2 85.28%);
  color: #ffffff !important;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 10px;
  text-align: center;
  transition: opacity 0.3s ease, transform 0.2s ease;
  border: none;
  text-decoration: none;
}
.btn_atf_primary:hover {
  opacity: 0.92;
  transform: translateY(-2px);
  text-decoration: none;
}
.btn_atf_secondary {
  display: inline-block;
  background: transparent;
  color: #ffffff !important;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 10px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: all 0.3s ease;
  text-decoration: none;
}
.btn_atf_secondary:hover {
  border-color: #EC1659;
  color: #EC1659 !important;
  text-decoration: none;
}

/* Authentic Player Testimonials */
.testimonial_section .testimonial_block {
  padding: 60px 30px 65px;
  background: radial-gradient(circle at center, rgba(146, 43, 226, 0.12) 0%, rgba(30, 30, 30, 0.95) 75%), #1e1e1e;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.45);
  margin-top: 45px;
  position: relative;
}

.testimonial_section .testimonial_block .testimonial_slide_box {
  text-align: center;
  max-width: 680px;
  width: 100%;
  padding: 10px 20px;
  margin: 0 auto;
}

.testimonial_quote_badge {
  width: 52px;
  height: 52px;
  line-height: 52px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: rgba(236, 22, 89, 0.12);
  color: #EC1659;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(236, 22, 89, 0.35);
  box-shadow: 0 4px 15px rgba(236, 22, 89, 0.2);
}

.testimonial_section .testimonial_block .testimonial_slide_box .review {
  font-size: 20px;
  line-height: 1.65;
  color: #f0f0f0;
  font-style: italic;
  font-weight: 400;
  margin: 0 auto 28px;
  max-width: 620px;
}

.testimonial_author_wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.testimonial_avatar_initial {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #EC1659 0%, #922BE2 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 16px rgba(236, 22, 89, 0.35);
  flex-shrink: 0;
}

.testimonial_author_details .author_name {
  font-size: 21px;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
  letter-spacing: 0.3px;
  text-align: left;
}

/* Dots Styling Enhancement for Testimonials */
.testimonial_section .owl-carousel .owl-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 35px;
}
.testimonial_section .owl-carousel .owl-dots button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.25);
  transition: all 0.3s ease;
  margin: 0 6px;
  border: none;
  outline: none;
}
.testimonial_section .owl-carousel .owl-dots button.active {
  background: linear-gradient(135deg, #EC1659 0%, #922BE2 100%);
  transform: scale(1.3);
  box-shadow: 0 0 10px rgba(236, 22, 89, 0.5);
}

@media (max-width: 767px) {
  .testimonial_section .testimonial_block {
    padding: 35px 16px 40px;
    margin-top: 30px;
    border-radius: 20px;
  }
  .testimonial_section .testimonial_block .testimonial_slide_box {
    padding: 5px 10px;
  }
  .testimonial_section .testimonial_block .testimonial_slide_box .review {
    font-size: 16px;
    line-height: 1.55;
    margin-bottom: 22px;
  }
  .testimonial_quote_badge {
    width: 44px;
    height: 44px;
    font-size: 20px;
    margin-bottom: 16px;
  }
  .testimonial_avatar_initial {
    width: 40px;
    height: 40px;
    font-size: 14px;
  }
  .testimonial_author_details .author_name {
    font-size: 18px;
  }
}

