/* Mobile Hero Redesign - Matching the Reference Image */

@media (max-width: 991px) {
  .mobile-hero-new {
    display: block !important;
    padding: 40px 15px 15px;
  }

 


  /* Body Content */
  .m-hero-body {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-grow: 1;
    justify-content: center;
  }

  /* Badge */
  .m-hero-trial-badge {
    background: linear-gradient(135deg, #ff8c37 0%, #ff6b00 100%);
    color: white;
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 800;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(255, 107, 0, 0.2);
    text-transform: uppercase;
  }

  /* Title */
  .m-hero-title {
    font-size: 2.4rem;
    font-weight: 900;
    color: #1e293b;
    line-height: 0.85;
    margin-bottom: 2px;
    letter-spacing: -1.5px;
  }

  .m-hero-title .m-hero-online {
    color: #00ba9a;
    display: block;
    font-size: 2.8rem;
    margin: 2px 0;
  }

  .m-hero-divider {
    width: 45px;
    height: 4px;
    background: #00ba9a;
    margin: 10px auto;
    border-radius: 10px;
  }

  /* Subtitle */
  .m-hero-subtitle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #475569;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 15px;
  }

  .m-hero-subtitle i {
    color: #ff6b00;
    font-size: 1.1rem;
  }

  /* Image Collage */
  .m-hero-collage {
    position: relative;
    height: 320px;
    margin: 10px auto;
    width: 100%;
    max-width: 350px;
  }

  .m-collage-item {
    position: absolute;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    background: white;
    border: 3px solid white;
  }

  .m-collage-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* Layout and sizes for a compact single-screen view */
  .item-top-left {
    top: 5%;
    left: 8%;
    width: 75px;
    height: 75px;
    z-index: 2;
    transform: rotate(-5deg);
  }

  .item-top-right {
    top: 15%;
    right: 5%;
    width: 65px;
    height: 80px;
    z-index: 2;
    transform: rotate(5deg);
  }

  .item-main {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 180px;
    height: 240px;
    z-index: 3;
    border-radius: 30px;
    border-width: 4px;
  }

  .item-bottom-left {
    bottom: 12%;
    left: 5%;
    width: 75px;
    height: 75px;
    z-index: 2;
  }

  .item-bottom-right {
    bottom: 5%;
    right: 10%;
    width: 70px;
    height: 85px;
    z-index: 2;
  }

  .m-live-now {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #ff4757;
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.6rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 5px;
  }

  /* Studio Card */
  .m-studio-card {
    background: white;
    padding: 12px 25px;
    border-radius: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin: -40px auto 20px;
    display: inline-block;
    position: relative;
    z-index: 10;
    width: 85%;
    max-width: 300px;
  }

  .m-studio-card::after {
    content: "";
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 35px;
    height: 3px;
    background: #cbd5e1;
    border-radius: 10px;
  }

  .m-studio-card h3 {
    font-size: 1.1rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 2px;
  }

  .m-studio-card p {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 700;
    margin-bottom: 8px;
  }

  /* Form */
  .m-hero-form {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 5px;
  }

  .m-form-input {
    background: #ffffff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    padding: 12px 18px;
    border: 1.5px solid #e2e8f0;
    transition: all 0.2s ease;
    height: 54px; /* Standardize height */
    box-sizing: border-box;
  }

  .m-form-input:focus-within {
    border-color: #00ba9a;
    box-shadow: 0 0 0 3px rgba(0, 186, 154, 0.1);
  }

  .m-form-input i {
    color: #64748b;
    font-size: 1.05rem;
    margin-right: 12px;
  }

  .m-form-input input {
    border: none;
    background: transparent;
    width: 100%;
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e293b;
    outline: none;
  }

  .m-form-input input::placeholder {
    color: #94a3b8;
    font-weight: 500;
  }

  .m-form-row {
    display: flex;
    gap: 10px;
    width: 100%;
  }
  
  .m-whatsapp {
    flex: 1;
  }

  .m-phone-code {
    width: 90px;
    flex-shrink: 0;
    gap: 6px;
    padding: 12px 5px;
    background: #f8fafc;
    border-color: #e2e8f0;
    justify-content: center;
    cursor: default;
    user-select: none;
    height: 54px; /* Match WhatsApp input height */
  }

  .m-phone-code span:last-child {
    font-size: 0.95rem;
    font-weight: 800;
    color: #475569;
    letter-spacing: 0.2px;
  }

  .m-hero-submit-btn {
    background: linear-gradient(135deg, #00ba9a 0%, #00a68d 100%);
    color: white;
    border: none;
    border-radius: 25px;
    padding: 0;
    height: 54px; /* Matches input field heights */
    font-size: 1.1rem;
    font-weight: 800;
    margin-top: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 8px 20px rgba(0, 186, 154, 0.2);
  }

  .m-hero-form span {
    text-align: center;
    display: block;
    margin-top: 2px;
    font-size: 11px;
  }

  .hero-combined-row-section {
    display: block !important;
    background: #f8fafc;
    padding: 10px 15px 30px; /* Reduced top padding */
    position: relative;
    z-index: 12;
  }

  .hero-unified-card-wrapper {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    margin: 0 !important;
    border-radius: 0 !important;
  }

  .hero-card-left-content {
    background: #ffffff !important;
    border-radius: 40px !important;
    padding: 30px 20px !important; /* Reduced card padding */
    text-align: center !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04) !important;
    margin-bottom: 25px;
  }

  .hero-card-left-content::before {
    display: none !important;
  }

  .schedule-badge-row {
    align-items: center !important;
    margin-bottom: 25px !important;
  }

  .live-status {
    background: #e6fcf5 !important;
    color: #00ba9a !important;
    padding: 8px 20px !important;
    font-size: 0.75rem !important;
  }

  .batch-lbl {
    font-size: 2rem !important;
    font-weight: 800 !important;
    color: #1a202c !important;
    margin-bottom: 8px !important;
    line-height: 1.2 !important;
    display: block !important;
  }

  .days-lbl {
    font-size: 0.95rem !important;
    color: #718096 !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
  }

  .schedule-time-grid {
    margin-top: 8px !important; /* Further reduced from 15px */
    width: 100% !important;
    margin-bottom: 0 !important; /* FIX: Added to remove bottom margin */
  }

  .schedule-grid-title {
    font-size: 0.8rem !important;
    color: #a0aec0 !important;
    letter-spacing: 1.5px !important;
    font-weight: 800 !important;
    margin-bottom: 12px !important; /* Reduced from 25px */
    text-align: center !important;
  }

  .grid-items-container {
    display: flex !important;
    flex-direction: column !important;
    gap: 15px !important;
    margin-bottom: 0 !important; /* FIX: Added to remove bottom margin */
    padding-bottom: 0 !important; /* FIX: Added to remove bottom padding */
  }

  .time-item-card {
    background: #ffffff !important;
    border-radius: 20px !important;
    padding: 14px 20px !important; /* Slimmer timing pills */
    border: 1px solid #edf2f7 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02) !important;
    justify-content: center !important;
    gap: 12px !important;
    white-space: nowrap !important; /* Keep timing on one line */
  }

  /* FIX: Added to target the last item and remove default spacing below it */
  .time-item-card:last-child {
    margin-bottom: 0 !important;
  }

  .time-item-card i {
    color: #ff8a00 !important;
    font-size: 1.3rem !important;
  }

  .time-item-card span {
    font-size: 1rem !important; /* Adjusted font for single-line fit */
    font-weight: 800 !important;
    color: #2d3748 !important;
    background: transparent !important;
  }

  .hero-card-right-poster {
    background: #ffffff !important;
    border-radius: 40px !important;
    padding: 15px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04) !important;
    max-height: none !important;
  }

  .unified-poster-img {
    border-radius: 25px !important;
    width: 100% !important;
    height: auto !important;
  }
}

@media (min-width: 992px) {
  .mobile-hero-new {
    display: none !important;
  }
}

/* Fix #4: Remove unnecessary top gap in the "Welcome Prana Yoga" section on mobile */
@media (max-width: 991px) {
  /* Tighten the hero-redesign section on homepage mobile — equal top/bottom spacing */
  .home-page .hero-redesign {
    padding: 15px 0 15px !important;
    margin-top: 0 !important;
  }

  /* The h3 "Welcome Prana Yoga" label picks up a large default margin-top — zero it out */
  .home-page .hero-redesign .section-title h3 {
    margin-top: 0 !important;
    margin-bottom: 12px !important;
  }

  /* Match bottom spacing of h2 to keep layout balanced */
  .home-page .hero-redesign .section-title h2 {
    margin-bottom: 15px !important;
  }

  /* hero-content padding below title is balanced with section padding */
  .home-page .hero-redesign .hero-content {
    padding-bottom: 0 !important;
    margin-top: 0 !important;
  }
}
