.mobile-subscribe {
  display: none;
}

#subscribe-section {
  background: #D9D9D9;
  margin-top: 100px;
  padding: 20px 30px;
  position: relative;
  /* overflow: hidden; */
  border-radius: 40px;
  margin: 0px 10% 0px 10%;
}

/* LEFT CONTENT FIX */
#subscribe-section .col-lg-6.p-5 {
  padding: 40px !important;
}

/* TITLE + TEXT */
.subscribe-title {
  font-size: 2.4rem;
  font-weight: 700;
  color: #2c2c2c;
}

.subscribe-text {
  font-size: 1rem;
  color: #555;
  line-height: 1.6;
}

/* INPUT SECTION */
.subscribe-form {
  background: #ffffff;
  border-radius: 50px;
  padding: 8px;
  gap: 10px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

.input-icon {
  background: #f2f2f2;
  padding: 10px 15px;
  border-radius: 50px;
}

.input-icon i {
  color: #888;
}

.email-input {
  border: none;
  padding-left: 5px;
  box-shadow: none !important;
}

.email-input::placeholder {
  color: #C4CCD0 !important;
}

.subscribe-btn {
  border: none;
  padding: 10px 22px;
  border-radius: 50px;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  background: linear-gradient(90deg, #1d4af9 0%, #3a6efb 100%);
  box-shadow: 0 0 9px rgba(29, 74, 249, 0.8);
}

.subscribe-btn:hover {
  background: linear-gradient(90deg, #3a6efb 0%, #1d4af9 100%);
}

/* LAPTOP IMAGE — DESKTOP BEHAVIOR */
.laptop-img {
  width: 100%;
  max-width: 600px;
  right: -20px;
  top: -240px;
  z-index: 10;
}

@media (max-width: 1400px) and (min-width: 992px) {
  #subscribe-section {
    margin: 0 10%;
    margin-bottom: 5%;
  }

  .subscribe-title {
    font-size: 2.1rem;
  }

  .laptop-img {
    max-width: 520px;
    top: -250px;
    right: -15px;
  }
}

@media (max-width: 1024px) {
  #subscribe-section {
    margin: 0 5%;
    margin-bottom: 3%;
  }
}

@media(min-width: 865px) and (max-width: 991px) {
  #subscribe-section {
    padding: 34px 24px;
  }

  .laptop-img {
    max-width: 400px;
    top: -180px;
    right: -10px;
  }

  .subscribe-text {
    max-width: 360px;
  }

  .subscribe-title {
    font-size: 1.95rem;
  }

  .laptop-img {
    max-width: 350px;
    top: -245px;
    right: -80px;
  }
}

@media (max-width: 991px) {
  #subscribe-section {
    /* ✅ SAME SIDE GAP */
    padding: 32px 16px;
    border-radius: 28px;
  }

  .align-container {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .laptop-img {
    position: static;
    max-width: 420px;
    width: 100%;
    margin: 36px auto 0;
    display: block;
  }

  .news-heading {
    font-size: 45px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #222;

  }
}

@media (max-width: 625px) {

  #subscribe-section {
    padding: 28px 16px;
    border-radius: 24px;
  }

  .subscribe-title {
    font-size: 40px;
    font-weight: 700;
    line-height: 1.25;
  }

  .laptop-img {
    position: static;
    max-width: 360px;
    width: 100%;
    margin: 30px auto 0;
    display: block;
  }

  .newsletter-card h2 {
    font-size: 35px;
    margin-bottom: 10px;
    color: #222;
  }

  .newsletter-card p {
    font-size: 14px;
    color: #555;
    margin-bottom: 25px;
    line-height: 1.5;
  }
}

@media (max-width: 480px) {

  .laptop-subscribe {
    display: none;
  }

  .mobile-subscribe {
    display: block;
  }

  .newsletter-card-wrapper {
    display: flex;
    justify-content: center;
    box-sizing: border-box;
  }

  .news-heading {
    font-size: 35px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #222;
  }

  .newsletter-card {
    background: #ECECEC;
    margin: 0 5%;
    border-radius: 20px;
    padding: 20px 12px;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    box-sizing: border-box;
  }


  .newsletter-card img {
    width: 100%;
    max-width: 100%;
    border-radius: 15px;
    margin-bottom: 25px;
  }


  .newsletter-card p {
    font-size: 14px;
    color: #555;
    margin-bottom: 25px;
    line-height: 1.5;
  }

  /* Form */
  .subscribe-form {
    display: flex;
    flex-wrap: wrap;
    /* allows wrapping on small screens */
    gap: 10px;
    justify-content: center;
  }

  .subscribe-form input[type="email"] {
    flex: 1 1 0;
    min-width: 0;
    /* prevents overflow */
    padding: 12px 15px;
    border-radius: 50px;
    border: 1px solid #ccc;
    font-size: 14px;
  }

  .subscribe-form button {
    flex: 0 0 auto;
    /* button keeps its width */
    padding: 12px 25px;
    background: #4f6cff;
    color: #fff;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
  }

  .subscribe-form button:hover {
    background: #3a50d1;
  }

  /* Placeholder color */
  .subscribe-form input::placeholder {
    color: #ccc;
  }

}