/* ── Blog & FAQ Sections (Connected S-Curve) ── */

.blog-section {
  background: #111; /* removed shine */
  border-radius: 40px 40px 0 40px; /* Bottom-right 0 to connect to FAQ Right */
  padding: 80px 60px;
  position: relative;
  max-width: 1400px;
  margin: 60px auto 0 auto;
  z-index: 2;
}

/* Blog Grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 60px;
}

.blog-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: transform 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
}

.blog-card:hover {
  transform: translateY(-5px);
  border-color: rgba(249, 77, 53, 0.3);
}

.blog-img-ph {
  width: 100%;
  height: 200px;
  background: #1a1a1a;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
}

.blog-img-ph::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, transparent 100%);
  z-index: 2;
  pointer-events: none;
}

.blog-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  z-index: 1;
}

.blog-tag {
  align-self: flex-start;
  padding: 4px 12px;
  background: rgba(249, 77, 53, 0.1);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.blog-title {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  line-height: 1.4;
  margin: 0;
}

.blog-desc {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.5;
  margin: 0;
  flex: 1;
}

.blog-link {
  color: var(--primary);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.blog-view-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  padding: 16px 32px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.blog-view-all-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* ── FAQ Section (S-Curve Connection) ── */
.faq-section {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 400px 1fr;
}

.faq-left {
  background: transparent; /* Black page background */
  padding: 40px 40px 80px 0;
  position: relative;
}

.faq-left-wrapper {
  position: absolute;
  top: 40px;
  bottom: 0;
  left: 0;
  right: 40px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.faq-right {
  background: #111; /* removed shine */
  border-radius: 0 0 40px 40px; /* Finish the grey snake cleanly */
  padding: 40px 60px 80px 60px;
  position: relative;
}

/* The magic inverted corner to connect Blog to FAQ Right */
.corner-faq-tl {
  position: absolute;
  top: 0; left: -40px;
  width: 40px; height: 40px;
  background-image: radial-gradient(circle at bottom left, transparent 40px, #111 40.5px);
  z-index: 3;
}

.faq-header-right {
  margin-bottom: 40px;
}

/* ── Support Mockup for FAQ Left ── */
.support-mockup {
  background: #0a0a0a; /* removed shine */
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  width: 100%;
  max-width: 320px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.6), 0 0 40px rgba(249, 77, 53, 0.05);
  overflow: hidden;
  animation: float-support 6s ease-in-out infinite;
}

.s-mock-header {
  background: #111; /* removed shine */
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
}

.s-mock-dots {
  display: flex;
  gap: 6px;
}

.s-mock-dots span {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.s-mock-dots span:nth-child(1) { background: rgba(255, 95, 86, 0.5); }
.s-mock-dots span:nth-child(2) { background: rgba(255, 189, 46, 0.5); }
.s-mock-dots span:nth-child(3) { background: rgba(39, 201, 63, 0.5); }

.s-mock-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.s-mock-msg {
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 14px;
  max-width: 85%;
  line-height: 1.4;
  font-weight: 500;
}

.s-mock-msg.bot {
  background: rgba(249, 77, 53, 0.1);
  color: var(--primary);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.s-mock-msg.user {
  background: #1a1a1a;
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.s-mock-input {
  margin-top: 10px;
  background: #050505;
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 20px;
  padding: 12px 16px;
  font-size: 13px;
  color: rgba(255,255,255,0.3);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

@keyframes float-support {
  0% { transform: translateY(0px); box-shadow: 0 20px 40px rgba(0,0,0,0.6), 0 0 40px rgba(249, 77, 53, 0.05); }
  50% { transform: translateY(-10px); box-shadow: 0 30px 50px rgba(0,0,0,0.7), 0 0 60px rgba(249, 77, 53, 0.1); }
  100% { transform: translateY(0px); box-shadow: 0 20px 40px rgba(0,0,0,0.6), 0 0 40px rgba(249, 77, 53, 0.05); }
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.faq-item:hover {
  border-color: rgba(255, 255, 255, 0.1);
}

.faq-question {
  padding: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  user-select: none;
}

.faq-icon {
  color: var(--primary);
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 20px;
}

.faq-answer {
  padding: 0 30px 0 30px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.6;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.4s ease;
}

/* Inline product links inside FAQ answers — underlined, red on hover */
.faq-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color 0.2s ease;
}
.faq-link:hover {
  color: var(--primary);
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 0 30px 30px 30px;
  opacity: 1;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-support-tile:hover {
  background: rgba(255, 255, 255, 0.06) !important;
  transform: translateY(-4px) !important;
}
.faq-support-tile:hover .tile-icon {
  background: var(--primary) !important;
  color: #fff !important;
  box-shadow: 0 10px 20px rgba(249, 77, 53, 0.3) !important;
}

@media (max-width: 1024px) {
  .blog-grid { grid-template-columns: 1fr; }
  .faq-section { grid-template-columns: 1fr; }
  .faq-left { border-radius: 0; padding: 40px 20px; }
  .faq-right { padding: 40px 20px; border-radius: 0 0 40px 40px; }
  .corner-faq-tl { display: none; }
  .faq-left-wrapper {
    position: relative;
    top: auto;
    bottom: auto;
    left: auto;
    right: auto;
  }
}

/* ── Telegram CTA Section (Redesigned) ── */
.telegram-section {
  max-width: 1400px;
  margin: 100px auto;
  padding: 0 20px;
}

.telegram-banner {
  background: var(--bg-texture), linear-gradient(135deg, #111 0%, #0a0a0a 100%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 40px;
  padding: 80px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 1px 0 0 rgba(255,255,255,0.1), 0 30px 60px rgba(0,0,0,0.5);
}

.tg-bg-glow.primary-glow {
  position: absolute;
  bottom: -20%;
  left: 10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(230, 42, 16, 0.15) 0%, transparent 70%);
  filter: blur(40px);
  z-index: 0;
  pointer-events: none;
}

.tg-bg-glow.white-glow {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
  filter: blur(40px);
  z-index: 0;
  pointer-events: none;
}

.tg-banner-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

.tg-text-wrapper {
  flex: 1;
  max-width: 600px;
}

.tg-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--primary);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(230,42,16, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(230,42,16, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(230,42,16, 0); }
}

.tg-banner-title {
  font-size: 48px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 20px 0;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.tg-banner-desc {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
  margin: 0 0 40px 0;
}

.btn-telegram-large {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(90deg, #F94D35, #E62A10);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  padding: 20px 40px;
  border-radius: 14px;
  transition: all 0.3s ease;
}

.btn-telegram-large:hover {
  transform: translateY(-3px);
}

.tg-visuals {
  position: relative;
  width: 300px;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tg-glass-card {
  width: 200px;
  height: 200px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 40px;
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(-10deg);
  box-shadow: 0 30px 60px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.2);
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  animation: float-main 6s ease-in-out infinite;
}

.telegram-banner:hover .tg-glass-card {
  transform: rotate(0deg) scale(1.05);
}

.tg-huge-svg {
  width: 100px;
  height: 100px;
}

@keyframes float-main {
  0% { transform: translateY(0px) rotate(-10deg); }
  50% { transform: translateY(-15px) rotate(-8deg); }
  100% { transform: translateY(0px) rotate(-10deg); }
}

@media (max-width: 1024px) {
  .tg-banner-content {
    flex-direction: column-reverse;
    text-align: center;
    gap: 40px;
  }
  .telegram-banner {
    padding: 40px 20px;
    border-radius: 30px;
  }
  .tg-banner-desc {
    margin: 0 auto;
  }
}

/* Mobile overrides for Blog, FAQ and Telegram community sections */
@media (max-width: 768px) {
  /* Blog Section overrides */
  .blog-section {
    padding: 40px 20px !important;
    border-radius: 24px !important;
    margin: 40px 20px 0 20px !important;
  }
  
  .blog-grid {
    margin-top: 30px !important;
    gap: 20px !important;
  }
  
  .blog-card {
    padding: 16px !important;
  }
  
  .blog-img-ph {
    height: 180px !important;
  }
  
  .blog-title {
    font-size: 18px !important;
  }
  
  /* FAQ Section overrides */
  .faq-section {
    padding: 24px 20px 0 20px !important;
  }
  .faq-left {
    padding: 0 !important;
    margin-bottom: 24px !important;
  }
  .faq-right {
    padding: 40px 20px !important;
    border-radius: 24px !important;
  }
  .faq-left-wrapper {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
  }
  .faq-support-tile {
    padding: 24px !important;
    border-radius: 24px !important;
  }
  
  .faq-support-tile div[style*="margin-top: 40px"] {
    margin-top: 20px !important;
  }
  
  .faq-question {
    padding: 20px !important;
    font-size: 16px !important;
  }
  
  .faq-answer {
    padding: 0 20px 0 20px !important;
    font-size: 14px !important;
  }
  
  .faq-item.active .faq-answer {
    padding: 0 20px 20px 20px !important;
  }

  /* Telegram CTA overrides */
  .telegram-section {
    margin: 60px auto !important;
    padding: 0 16px !important;
  }
  
  .telegram-banner {
    padding: 40px 24px !important;
    border-radius: 32px !important;
  }
  
  .tg-banner-title {
    font-size: clamp(28px, 6vw, 36px) !important;
  }
  
  .tg-banner-desc {
    font-size: 15px !important;
    margin-bottom: 30px !important;
  }
  
  .btn-telegram-large {
    padding: 16px 28px !important;
    font-size: 16px !important;
    width: 100% !important;
    justify-content: center !important;
  }
  
  .tg-visuals {
    width: 100% !important;
    height: auto !important;
    margin-bottom: 20px !important;
  }
  
  .tg-glass-card {
    width: 140px !important;
    height: 140px !important;
    border-radius: 24px !important;
  }
  
  .tg-huge-svg {
    width: 70px !important;
    height: 70px !important;
  }
}




