/* Creonix Academy Landing Page Styles */

/* ============================================ */
/* TELEGRAM-THEMED COLORS & VARIABLES          */
/* ============================================ */
:root {
  --academy-blue: #0088cc;
  --academy-blue-light: #00c6ff;
  --academy-gradient: linear-gradient(135deg, #0088cc 0%, #00c6ff 100%);
  --fomo-red: #ff4444;
  --fomo-orange: #ff8800;
  --fomo-gradient: linear-gradient(135deg, #ff4444 0%, #ff8800 100%);
  --success-green: #10b981;
  --text-muted: #9ca3af;
}

/* Smooth scroll for anchor links */
html {
  scroll-behavior: smooth;
}

/* ============================================ */
/* ACADEMY SECTION ON MAIN LANDING             */
/* ============================================ */
#academy-preview-section {
  background: linear-gradient(180deg, #000000 0%, #0a0a0a 100%);
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

#academy-preview-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(0, 136, 204, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.academy-preview-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.academy-preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

@media (max-width: 1024px) {
  .academy-preview-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

.academy-icon {
  width: 64px;
  height: 64px;
  background: var(--academy-gradient);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin-bottom: 1.5rem;
}

.academy-preview-text h2 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  background: var(--academy-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.academy-preview-text .subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.academy-features-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
}

.academy-features-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.academy-features-list li::before {
  content: '✅';
  flex-shrink: 0;
}

.academy-disclaimer {
  margin: 1.5rem 0;
  font-size: 1rem;
  color: #ffffff;
  line-height: 1.5;
}

.academy-disclaimer strong {
  color: var(--academy-blue-light);
}

/* FOMO Inline Box */
.academy-fomo-inline {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  background: var(--fomo-gradient);
  padding: 1rem 1.5rem;
  border-radius: 12px;
  margin: 2rem 0;
  font-weight: 600;
}

.academy-fomo-inline span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* CTA Buttons */
.academy-cta-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.academy-btn-primary {
  padding: 1rem 2rem;
  background: var(--academy-gradient);
  border: none;
  border-radius: 12px;
  color: white;
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  display: inline-block;
}

.academy-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 136, 204, 0.3);
}

.academy-btn-secondary {
  padding: 1rem 2rem;
  background: transparent;
  border: 2px solid var(--academy-blue);
  border-radius: 12px;
  color: var(--academy-blue-light);
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-block;
}

.academy-btn-secondary:hover {
  background: rgba(0, 136, 204, 0.1);
  border-color: var(--academy-blue-light);
}

.academy-btn-telegram {
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #0088cc 0%, #00c6ff 100%);
  border: none;
  border-radius: 12px;
  color: white;
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 4px 15px rgba(0, 136, 204, 0.3);
}

.academy-btn-telegram:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 136, 204, 0.5);
  background: linear-gradient(135deg, #0099dd 0%, #00d7ff 100%);
}

/* Visual Preview */
.academy-preview-visual {
  position: relative;
}

.academy-phone-mockup {
  max-width: 100%;
  height: auto;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0, 136, 204, 0.3);
}

.academy-video-demo {
  width: 100%;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0, 136, 204, 0.3);
}

/* ============================================ */
/* ACADEMY DEDICATED PAGE STYLES                */
/* ============================================ */

/* Hero Section */
.academy-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  background: radial-gradient(ellipse at top, rgba(0, 136, 204, 0.15) 0%, transparent 60%);
}

/* ============================================ */
/* OLD STYLES REMOVED - USING MAIN LANDING    */
/* ============================================ */
/* Comparison section now uses inline Tailwind styles + main landing patterns */
/* Content blocks now use .product-section, .feature-list from landing_v2.css */

/* Proof / Cases Section */
.academy-cases {
  padding: 6rem 0;
  background: #000000;
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 3rem auto 0;
}

@media (max-width: 1024px) {
  .cases-grid {
    grid-template-columns: 1fr;
  }
}

.case-card {
  padding: 2rem;
  background: linear-gradient(135deg, rgba(0, 136, 204, 0.05) 0%, rgba(16, 185, 129, 0.05) 100%);
  border: 2px solid rgba(0, 136, 204, 0.2);
  border-radius: 20px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.case-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 136, 204, 0.3);
  border-color: var(--academy-blue);
}

.case-result {
  font-size: 2rem;
  font-weight: 700;
  background: var(--academy-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.5rem;
}

.case-niche {
  font-size: 1.25rem;
  color: #ffffff;
  margin-bottom: 1rem;
}

.case-source {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: italic;
}

/* FOMO Pricing Section */
.academy-pricing-fomo {
  padding: 6rem 0;
  background: linear-gradient(180deg, #0a0a0a 0%, #1a0a0a 50%, #0a0a0a 100%);
  position: relative;
  overflow: hidden;
}

.academy-pricing-fomo::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 1000px;
  height: 1000px;
  background: radial-gradient(circle, rgba(255, 68, 68, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.pricing-card-fomo {
  max-width: 800px;
  margin: 3rem auto;
  padding: 3rem;
  background: linear-gradient(135deg, rgba(255, 68, 68, 0.1) 0%, rgba(255, 136, 0, 0.1) 100%);
  border: 3px solid var(--fomo-orange);
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(255, 68, 68, 0.3);
  position: relative;
}

.fomo-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--fomo-gradient);
  padding: 0.5rem 2rem;
  border-radius: 20px;
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: 0 5px 20px rgba(255, 68, 68, 0.4);
}

.pricing-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.pricing-amount {
  text-align: center;
  font-size: 4rem;
  font-weight: 800;
  background: var(--academy-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.5rem;
}

.pricing-strikethrough {
  text-align: center;
  font-size: 2rem;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-bottom: 2rem;
}

/* OLD STYLES REMOVED - using .feature-list from landing_v2.css */

/* FOMO Timer */
.fomo-timer-container {
  margin: 2rem 0;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  text-align: center;
}

.fomo-timer {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1rem;
}

.timer-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.timer-value {
  font-size: 3rem;
  font-weight: 700;
  background: var(--fomo-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  min-width: 70px;
}

.timer-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 0.5rem;
}

/* FOMO Counter */
.fomo-counter-container {
  margin: 2rem 0;
  text-align: center;
}

.counter-text {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.counter-bar {
  width: 100%;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  overflow: hidden;
  position: relative;
}

.counter-progress {
  height: 100%;
  background: var(--fomo-gradient);
  border-radius: 20px;
  transition: width 0.5s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  position: relative;
}

.counter-progress::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* OLD STYLES REMOVED - using comparison_section.css */

/* FAQ Section */
.academy-faq {
  padding: 6rem 0;
  background: #000000;
}

.faq-container {
  max-width: 900px;
  margin: 3rem auto 0;
}

.faq-item {
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
}

.faq-question {
  padding: 1.5rem;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s;
}

.faq-question:hover {
  background: rgba(0, 136, 204, 0.05);
}

.faq-question::after {
  content: '▼';
  transition: transform 0.3s;
  color: var(--academy-blue);
}

.faq-item.active .faq-question::after {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 1.5rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 0 1.5rem 1.5rem;
}

/* Final CTA */
.academy-final-cta {
  padding: 6rem 0;
  background: linear-gradient(135deg, #0088cc 0%, #00c6ff 100%);
  text-align: center;
}

.final-cta-content {
  max-width: 800px;
  margin: 0 auto;
}

.final-cta-content h2 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 2rem;
  color: #ffffff;
}

.final-cta-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.cta-stat {
  font-size: 1.5rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.academy-btn-large {
  padding: 1.5rem 3rem;
  background: #ffffff;
  color: var(--academy-blue);
  border: none;
  border-radius: 16px;
  font-weight: 700;
  font-size: 1.5rem;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  display: inline-block;
  margin-top: 2rem;
}

.academy-btn-large:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .academy-hero {
    padding-top: 60px !important; /* Reduce from 100px */
  }

  .academy-preview-text h2 {
    font-size: 2rem;
  }

  .academy-hero h1 {
    font-size: 2.5rem;
  }

  .block-text h3 {
    font-size: 1.75rem;
  }

  .pricing-amount {
    font-size: 3rem;
  }

  .timer-value {
    font-size: 2rem;
    min-width: 50px;
  }

  .fomo-timer {
    gap: 1rem;
  }

  .final-cta-content h2 {
    font-size: 2rem;
  }

  .academy-btn-large {
    padding: 1rem 2rem;
    font-size: 1.2rem;
  }

  /* FAQ Section */
  .faq-question {
    font-size: 1.1rem;
  }

  /* Product Badges */
  .product-badge {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
  }

  /* Final CTA Stats */
  .final-cta-stats {
    gap: 1.5rem;
  }

  /* Icon sizes */
  .icon-md {
    width: 20px;
    height: 20px;
  }
}

/* Ultra-small screens (iPhone SE, etc.) */
@media (max-width: 375px) {
  .timer-value {
    font-size: 1.75rem;
    min-width: 40px;
  }

  .fomo-timer {
    gap: 0.75rem;
  }
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.text-gradient-academy {
  background: var(--academy-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.mb-2 {
  margin-bottom: 2rem;
}

.mt-3 {
  margin-top: 3rem;
}

/* Make info badge blocks fit content width instead of stretching full width */
/* BUT exclude blocks inside space-y containers (workflow examples) */
.bg-gradient-to-r.from-green-500\/10:not(.space-y-8 > *),
.bg-gradient-to-r.from-red-500\/10:not(.space-y-8 > *),
.bg-gradient-to-r.from-purple-500\/10:not(.space-y-8 > *),
.bg-gradient-to-r.from-pink-500\/10:not(.space-y-8 > *),
.bg-gradient-to-r.from-cyan-500\/10:not(.space-y-8 > *) {
  display: inline-block;
  width: fit-content;
}

/* Exception: blocks with max-w and mx-auto should remain centered */
.bg-gradient-to-r.max-w-4xl.mx-auto {
  display: block;
  width: auto;
}

/* Workflow examples: block display always */
.space-y-8 > .bg-gradient-to-r {
  display: block !important;
  width: auto !important;
}

/* Workflow container: column on mobile, row on desktop */
/* Target only the workflow examples container */
@media (max-width: 768px) {
  .max-w-4xl.mx-auto.space-y-8 {
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }
}

@media (min-width: 769px) {
  .max-w-4xl.mx-auto.space-y-8 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

  /* Remove vertical spacing on desktop */
  .max-w-4xl.mx-auto.space-y-8 > * {
    margin-top: 0 !important;
  }
}

/* Ensure content blocks with galleries remain full-width block elements on desktop */
@media (min-width: 769px) {
  .order-1,
  .order-2,
  .lg\\:order-1,
  .lg\\:order-2 {
    display: block !important;
    width: auto !important;
  }
}

/* ============================================
   FLOATING FREE BADGE (for Hero CTA button)
   ============================================ */
.btn-free-badge {
  position: absolute;
  top: -8px;
  right: -20px;
  background: linear-gradient(135deg, #10b981, #059669);
  padding: 3px 8px;
  border-radius: 8px;
  font-size: 0.65rem;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
  z-index: 10;
  letter-spacing: 0.5px;
}

/* Fix FREE badge positioning on mobile - top-right corner OVER the button */
@media (max-width: 768px) {
  .btn-free-badge {
    top: -6px !important;
    right: 25px !important;
    font-size: 0.6rem !important;
    padding: 2px 6px !important;
  }
}

@media (max-width: 480px) {
  .btn-free-badge {
    top: -5px !important;
    right: 30px !important;
    font-size: 0.65rem !important;
    padding: 2px 7px !important;
  }
}

/* Fix horizontal scrollbar on mobile */
@media (max-width: 768px) {
  html, body {
    overflow-x: hidden;
    max-width: 100vw;
  }

  /* Reduce font sizes globally on mobile - HIGH SPECIFICITY */
  /* REMOVED - conflicts with Tailwind text-7xl, text-6xl classes */

  body h4,
  section h4,
  div h4 {
    font-size: 1rem !important;
  }

  body p,
  section p,
  div p,
  body li,
  section li,
  div li {
    font-size: 0.85rem !important;
    line-height: 1.4 !important;
  }

  /* Tailwind utility classes - HIGH SPECIFICITY */
  body .text-xl,
  section .text-xl,
  div .text-xl {
    font-size: 0.95rem !important;
  }

  body .text-lg,
  section .text-lg,
  div .text-lg {
    font-size: 0.9rem !important;
  }

  body .text-base,
  section .text-base,
  div .text-base {
    font-size: 0.85rem !important;
  }

  body .text-sm,
  section .text-sm,
  div .text-sm {
    font-size: 0.75rem !important;
  }

  body .text-2xl,
  section .text-2xl,
  div .text-2xl {
    font-size: 1.15rem !important;
  }

  body .text-3xl,
  section .text-3xl,
  div .text-3xl {
    font-size: 1.35rem !important;
  }

  body .text-4xl,
  section .text-4xl,
  div .text-4xl {
    font-size: 1.5rem !important;
  }

  body .text-5xl,
  section .text-5xl,
  div .text-5xl {
    font-size: 1.65rem !important;
  }

  /* Without Academy comparison block - reduce text */
  .comparison-box h3,
  [style*="Without Academy"] h3,
  [style*="With Academy"] h3 {
    font-size: 1.25rem !important;
  }

  .comparison-box p,
  [style*="Without Academy"] p,
  [style*="With Academy"] p {
    font-size: 0.9rem !important;
    margin-bottom: 0.75rem !important;
  }

  .comparison-box ul li,
  [style*="Without Academy"] ul li,
  [style*="With Academy"] ul li {
    font-size: 0.85rem !important;
    margin-bottom: 0.5rem !important;
  }

  /* Reduce padding for comparison blocks */
  [style*="padding: 3rem 2rem"] {
    padding: 1.5rem 1rem !important;
  }

  /* Timeline comparison text */
  [style*="12 months"] p,
  [style*="6 months"] p {
    font-size: 0.9rem !important;
  }

  [style*="12 months"] .text-2xl,
  [style*="6 months"] .text-2xl {
    font-size: 1.25rem !important;
  }

  /* Make info blocks more compact */
  .icon-lg {
    width: 40px !important;
    height: 40px !important;
  }

  .icon-md {
    width: 32px !important;
    height: 32px !important;
  }

  .icon-sm {
    width: 24px !important;
    height: 24px !important;
  }

  /* COMPARISON BLOCK - MOBILE ONLY - Smaller icons to prevent layout breaking */
  /* Target via parent grid container with specific border-radius style */
  [style*="border-radius: 16px"][style*="overflow: hidden"] .icon-lg {
    width: 20px !important;
    height: 20px !important;
  }

  [style*="border-radius: 16px"][style*="overflow: hidden"] .icon-md {
    width: 18px !important;
    height: 18px !important;
  }

  [style*="border-radius: 16px"][style*="overflow: hidden"] .icon-sm {
    width: 14px !important;
    height: 14px !important;
  }

  /* Reduce gap in comparison lists */
  [style*="border-radius: 16px"][style*="overflow: hidden"] .gap-3 {
    gap: 0.4rem !important;
  }

  [style*="border-radius: 16px"][style*="overflow: hidden"] .gap-2 {
    gap: 0.3rem !important;
  }

  /* Reduce spacing in comparison lists */
  [style*="border-radius: 16px"][style*="overflow: hidden"] .space-y-3 > * {
    margin-top: 0.4rem !important;
  }

  [style*="border-radius: 16px"][style*="overflow: hidden"] .space-y-2 > * {
    margin-top: 0.3rem !important;
  }

  /* Reduce padding in comparison blocks - target both child divs */
  [style*="border-radius: 16px"][style*="overflow: hidden"] > [style*="padding: 3rem 2rem"] {
    padding: 1.5rem 1rem !important;
  }

  /* Reduce spacing in info blocks */
  .mb-6 {
    margin-bottom: 1rem !important;
  }

  .mb-4 {
    margin-bottom: 0.75rem !important;
  }

  .mb-3 {
    margin-bottom: 0.5rem !important;
  }

  .mt-6 {
    margin-top: 1rem !important;
  }

  .mt-4 {
    margin-top: 0.75rem !important;
  }

  .gap-3 {
    gap: 0.5rem !important;
  }

  .gap-4 {
    gap: 0.75rem !important;
  }

  /* Compact padding for sections */
  .py-24 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }

  .py-16 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }

  .py-12 {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
  }

  /* Fix button colors - ensure gradient buttons are visible */
  a[href*="t.me/creonix_academybot"] {
    background: linear-gradient(135deg, #0088cc 0%, #00c6ff 100%) !important;
    color: white !important;
  }

  /* Fix fomo-badge alignment and size on mobile */
  .fomo-badge {
    font-size: 0.8rem !important;
    padding: 0.4rem 1.25rem !important;
    white-space: nowrap;
    top: -12px !important;
  }

  /* Reduce pricing card padding */
  .pricing-card-fomo {
    padding: 2rem 1rem !important;
    margin: 2rem auto !important;
  }

  /* Make USP blocks more compact */
  .p-8 {
    padding: 1.5rem !important;
  }

  /* Specific fix for large icons in USP blocks */
  [style*="width: 3.5rem"] {
    width: 2.5rem !important;
    height: 2.5rem !important;
  }

  /* Reduce icon margins */
  .mb-4.icon-lg,
  .icon-lg.mb-4 {
    margin-bottom: 0.75rem !important;
  }

  /* CRITICAL FIX: Make emoji/icons inline with headers on mobile */

  /* Target all divs with large emoji/text */
  div.text-4xl,
  div.text-5xl {
    display: inline-block !important;
    font-size: 1.5rem !important;
    margin-bottom: 0 !important;
    margin-right: 0.5rem !important;
    vertical-align: middle !important;
    line-height: 1 !important;
  }

  /* Headers that come after emoji */
  div.text-4xl + h3,
  div.text-5xl + h4 {
    display: inline-block !important;
    margin-bottom: 0.5rem !important;
    vertical-align: middle !important;
  }

  /* USP blocks with centered icons - make them flex */
  div.text-center.p-8 {
    text-align: left !important;
  }

  div.text-center span.icon-lg {
    display: inline-block !important;
    width: 1.75rem !important;
    height: 1.75rem !important;
    margin-bottom: 0 !important;
    margin-right: 0.5rem !important;
    vertical-align: middle !important;
  }

  div.text-center span.icon-lg + h3 {
    display: inline-block !important;
    margin-bottom: 0.5rem !important;
    vertical-align: middle !important;
  }

  /* Compact padding */
  div.p-6 {
    padding: 1rem !important;
  }

  div.p-8 {
    padding: 1.25rem !important;
  }
}

@media (max-width: 480px) {
  /* Even smaller on very small screens */
  h1 {
    font-size: 1.5rem !important;
  }

  h2 {
    font-size: 1.35rem !important;
  }

  h3 {
    font-size: 1.15rem !important;
  }

  p, li {
    font-size: 0.85rem !important;
  }

  /* Extra compact icons on tiny screens */
  .icon-lg {
    width: 32px !important;
    height: 32px !important;
  }

  [style*="width: 3.5rem"] {
    width: 2rem !important;
    height: 2rem !important;
  }

  /* Even more compact padding */
  .p-8 {
    padding: 1rem !important;
  }

  .py-24 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }
}

/* ============================================ */
/* MOBILE HERO FIXES                           */
/* ============================================ */

@media (max-width: 768px) {
  /* Hero section mobile spacing */
  .academy-hero {
    padding-top: 3rem !important;
    padding-bottom: 2rem !important;
  }

  /* Smaller icon on mobile */
  .academy-icon {
    width: 48px !important;
    height: 48px !important;
    font-size: 24px !important;
    margin-bottom: 1rem !important;
  }

  /* Smaller buttons on mobile */
  .academy-btn-primary,
  .academy-btn-telegram {
    padding: 0.75rem 1.25rem !important;
    font-size: 0.95rem !important;
  }

  /* Reduce heading margins on mobile */
  .academy-hero h1 {
    margin-bottom: 1rem !important;
  }

  .academy-hero h2 {
    margin-bottom: 1.5rem !important;
  }

  .academy-hero p {
    margin-bottom: 1.5rem !important;
    font-size: 1rem !important;
  }

  /* Reduce button container margin */
  .academy-hero .flex.flex-col {
    margin-top: 1.5rem !important;
    gap: 0.75rem !important;
  }
}

/* ============================================ */
/* TOOLS GRID (Hero Section)                   */
/* ============================================ */

.tools-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 2rem auto;
  max-width: 500px;
}

.tool-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 1rem;
  background: rgba(0, 136, 204, 0.1);
  border: 1px solid rgba(0, 136, 204, 0.3);
  border-radius: 12px;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.tool-item:hover {
  background: rgba(0, 136, 204, 0.2);
  border-color: rgba(0, 198, 255, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 136, 204, 0.3);
}

.tool-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  line-height: 1;
  filter: grayscale(100%) brightness(2);
}

.tool-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  text-align: center;
  line-height: 1.3;
}

/* Tablet: 3 columns */
@media (min-width: 768px) {
  .tools-grid {
    grid-template-columns: repeat(3, 1fr);
    max-width: 700px;
    gap: 1.25rem;
  }

  .tool-icon {
    font-size: 2.75rem;
  }

  .tool-name {
    font-size: 0.95rem;
  }
}

/* Desktop: 6 columns in one row */
@media (min-width: 1024px) {
  .tools-grid {
    grid-template-columns: repeat(6, 1fr);
    max-width: 1200px;
    gap: 1.5rem;
  }

  .tool-item {
    padding: 1.5rem 1rem;
  }

  .tool-icon {
    font-size: 3rem;
  }

  .tool-name {
    font-size: 1rem;
  }
}

/* Mobile: smaller icons and padding */
@media (max-width: 480px) {
  .tools-grid {
    gap: 0.75rem;
    margin: 1.5rem auto;
    max-width: 95%;
  }

  .tool-item {
    padding: 1rem 0.75rem;
  }

  .tool-icon {
    font-size: 2rem;
    margin-bottom: 0.35rem;
  }

  .tool-name {
    font-size: 0.8rem;
  }
}

/* ============================================ */
/* TOOLS GRID - ACADEMY BLOCK (Main Landing)   */
/* ============================================ */

/* Override for Academy block on main landing page */
/* On desktop, show 3 columns instead of 6 to fit the right column */
@media (min-width: 1024px) {
  .tools-grid-academy-block {
    grid-template-columns: repeat(3, 1fr) !important;
    max-width: 600px !important;
    gap: 1.25rem !important;
  }
}

/* ============================================ */
/* BUTTON OVERRIDES FOR MOBILE                 */
/* ============================================ */

@media (max-width: 768px) {
  .btn-gradient-primary,
  .btn-outline-secondary {
    padding: 0.625rem 1.25rem !important;
    font-size: 0.875rem !important;
  }
}

/* ============================================ */
/* STICKY BAR: TELEGRAM BOT CTA                */
/* ============================================ */

.academy-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: linear-gradient(135deg, var(--fomo-red) 0%, var(--fomo-orange) 100%);
  box-shadow: 0 -4px 20px rgba(255, 68, 68, 0.4);
  transform: translateY(0);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.academy-sticky-bar.hidden {
  transform: translateY(100%);
  pointer-events: none;
}

.sticky-bar-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.875rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.sticky-bar-text {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex: 1;
  min-width: 0;
}

.sticky-bar-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  line-height: 1;
}

.sticky-bar-message {
  color: white;
  font-size: 0.9375rem;
  line-height: 1.4;
}

.sticky-bar-message strong {
  font-weight: 700;
}

.sticky-bar-timer {
  display: inline-block;
  font-family: 'Courier New', monospace;
  font-weight: 700;
  color: #ffeb3b;
  background: rgba(0, 0, 0, 0.2);
  padding: 0.125rem 0.375rem;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

.sticky-bar-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.sticky-bar-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.625rem 1.25rem;
  background: white;
  color: var(--fomo-red);
  font-weight: 700;
  font-size: 0.9375rem;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.sticky-bar-btn:hover {
  background: #fff;
  color: var(--fomo-red);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.6);
}

.sticky-bar-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 1.25rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.sticky-bar-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .sticky-bar-content {
    padding: 0.75rem 1rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .sticky-bar-text {
    gap: 0.5rem;
  }

  .sticky-bar-icon {
    font-size: 1.25rem;
  }

  .sticky-bar-message {
    font-size: 0.875rem;
  }

  .sticky-bar-actions {
    width: 100%;
    gap: 0.625rem;
  }

  .sticky-bar-btn {
    flex: 1;
    justify-content: center;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
  }

  .sticky-bar-close {
    width: 36px;
    height: 36px;
  }
}

@media (max-width: 480px) {
  .sticky-bar-message {
    font-size: 0.8125rem;
  }

  .sticky-bar-btn {
    font-size: 0.8125rem;
    padding: 0.5rem 0.875rem;
  }
}
