/* ========================================
   Mobile Spacing & Padding Optimization
   Enhanced spacing for better mobile UX
   ======================================== */

/* Remove excessive spacing on mobile */
@media (max-width: 767px) {
  /* Section spacing */
  .space {
    padding: 50px 0 !important;
  }
  
  .space-top {
    padding-top: 50px !important;
  }
  
  .space-bottom {
    padding-bottom: 50px !important;
  }
  
  .space-extra {
    padding: 40px 0 !important;
  }
  
  .space-extra-top {
    padding-top: 40px !important;
  }
  
  .space-extra-bottom {
    padding-bottom: 40px !important;
  }
  
  /* Container padding */
  .container {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
  
  /* Remove negative margins that create gaps */
  .row {
    margin-left: -10px !important;
    margin-right: -10px !important;
  }
  
  .row > * {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }
  
  /* Title area spacing */
  .title-area {
    margin-bottom: 30px !important;
    padding: 0 10px;
  }
  
  .sec-title {
    font-size: 24px !important;
    line-height: 1.3 !important;
    margin-bottom: 15px !important;
  }
  
  .sub-title {
    font-size: 14px !important;
    margin-bottom: 12px !important;
  }
  
  /* Remove empty spaces from hero */
  .th-hero-wrapper {
    margin-bottom: 0 !important;
  }
  
  /* Category section spacing */
  .category-sec-wrap {
    padding: 0 !important;
  }
  
  /* About section spacing */
  .about-sec {
    padding: 40px 0 !important;
  }
  
  /* Products section spacing */
  #course-sec,
  .course-sec {
    padding: 50px 0 !important;
  }
  
  /* Counter section - remove transform spacing */
  .counter-area-1 {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }
  
  /* CTA sections spacing */
  .cta-sec {
    padding: 40px 0 !important;
  }
  
  /* Blog section spacing */
  #blog-sec {
    padding: 50px 0 !important;
  }
  
  /* Events section spacing */
  .event-sec {
    padding: 50px 0 !important;
  }
  
  /* Testimonials section spacing */
  .testi-sec {
    padding: 50px 0 !important;
  }
  
  /* Partners section spacing */
  .brand-sec {
    padding: 40px 0 !important;
  }
  
  /* Remove gap between sections */
  section + section {
    margin-top: 0 !important;
  }
  
  /* Card spacing improvements */
  .course-box,
  .product-card,
  .blog-box,
  .event-card {
    margin-bottom: 25px !important;
  }
  
  /* Button spacing */
  .th-btn {
    padding: 12px 25px !important;
    font-size: 14px !important;
  }
  
  /* Remove shape overlays that create space */
  .shape-mockup {
    display: none !important;
  }
}

/* Tablet spacing adjustments */
@media (min-width: 768px) and (max-width: 991px) {
  .space {
    padding: 60px 0 !important;
  }
  
  .space-top {
    padding-top: 60px !important;
  }
  
  .space-bottom {
    padding-bottom: 60px !important;
  }
  
  .container {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
  
  .title-area {
    margin-bottom: 35px !important;
  }
  
  .sec-title {
    font-size: 28px !important;
  }
}

/* Extra small devices - optimize further */
@media (max-width: 575px) {
  .space {
    padding: 40px 0 !important;
  }
  
  .space-top {
    padding-top: 40px !important;
  }
  
  .space-bottom {
    padding-bottom: 40px !important;
  }
  
  .container {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
  
  .title-area {
    margin-bottom: 25px !important;
  }
  
  .sec-title {
    font-size: 22px !important;
  }
  
  .sub-title {
    font-size: 13px !important;
  }
}
