@media (min-width: 320px) and (max-width: 767px) {
  @keyframes bounce {
    0%,
    100% {
      transform: translateY(0);
    }
    50% {
      transform: translateY(-10px);
    }
  }

  .get-quote {
    display: none;
  }

  .image-grid {
    display: block !important; 
    gap: 20px;
    justify-content: center;
    margin: 50px 10px 0px !important;
  }

  .image-item img {
    width: 100% !important;
    height: 250px !important;
  }
  .image-item{
    margin-top: 20px;
  }

  .get-quote-phone {
    transition: background-color 0.3s ease, transform 0.2s ease;
    background-color: #eb5202;
    color: white;
    width: 50px;
    height: 50px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
  }

  .cards {
    margin-top: 0px;
  }

  .navbar-main {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 1px 0;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 300;
    background-color: black;
  }

  .navbar-main {
    padding: 10px 0;
  }
  .navbar-main img {
    width: 180px;
  }

  .navbar-main .call-link {
    background-color: #e31e25;
    text-decoration: none;
    color: white;
    padding: 8px 9px;
    border: none;
    border-radius: 50px;
    font-size: 12px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-weight: 600;
  }
  .right-no {
    justify-content: center;
  }

  footer {
    padding-top: 40px 0;
  }

  /* hero-section  */

  .hero-section {
    overflow: hidden;
    position: relative;
    width: 100%;
    height: 250px; /* Default height for larger screens */
    display: flex;
    align-items: center;
    padding-top: 40px;
  }

  .background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
  }

  .hero-section h3 {
    color: #e31e25;
    font-weight: 700;
    line-height: 4rem;
    font-size: 2rem;
    line-height: 2rem;
    text-align: center;
  }
  .hero-section h5 {
    color: white;
    font-weight: bold;
    text-align: center;
  }
  .hero-section .content {
    position: relative;
    z-index: 80;
    text-align: center;
  }
  .hero-section p {
    font-weight: 700;
    color: white;
  }

  /* third section  */
  .third-section .infoHeading {
    color: #ff8a03;
    font-size: 2rem;
    font-weight: 700;
  }
  .third-section p {
    font-size: 1.1rem;
    margin-top: 20px;
  }

  .third-section img {
    height: 100%;
    width: 90%;
    border-radius: 10px;
    box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.4),
      -10px -10px 30px rgba(255, 255, 255, 0.1);
    transition: box-shadow 0.3s ease-in-out;
  }
  .third-section .counter {
    background-color: #ffdfbb;
    border-radius: 15px;
    display: grid;
    gap: 10px;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    justify-content: center;
    column-gap: 20px;
    padding: 16px 24px;
    color: #ff8a03;
    width: 100%;
    max-width: 90%;
    margin-top: -2rem;

    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  }

  .counter .countValue {
    font-size: 1.3rem;
    font-weight: bold;
    text-align: center;
  }

  .counter .countText {
    font-size: 0.9rem;
    text-align: center;
  }

  /* fourth section  */
  .Best-astrologer h5 {
    color: #ff8a03;
    font-weight: bold;
    font-size: 1.5rem;
    text-align: center;
    line-height: 30px;
  }

  .Our-Best-Astrology-Services .our-best {
    color: #ff8a03;
    font-weight: bold;
    font-size: 2rem;
    text-align: center;
    line-height: 40px;
  }

  /* footer  */

  footer .contact {
    font-size: 1.3rem;
    border-bottom: 1px solid white;
    width: fit-content;
    padding-bottom: 10px;
  }
  footer .Contact-us {
    text-decoration: none;
    color: white;
    font-weight: 800;
    font-size: 0.8rem;
  }
  footer .Copyright {
    font-size: 0.9rem;
  }

  .commonHeading {
    color: #ff8a03;
    font-weight: bold;
    font-size: 28px;
    text-align: center;
    line-height: 43px;
  }
  .cards {
    margin-top: 40px;
  }
  .gallerySectionImg {
    width: 100%;
  }

  .ExperienceHeaidng {
    font-weight: 700;
    color: #e31e25;
    font-size: 1.8rem;
  }
  .Experience-power p {
    font-size: 1.1rem;
  }
  .footer-logo {
    width: 280px;
  }
  .form-pop {
    width: 90%;
  }

  .form-pop {
    padding: 15px;
  }

  .Form-img {
    height: 200px;
    display: none;
  }

  .btn-book-now {
    font-size: 0.95rem;
  }

  h5 {
    font-size: 1.1rem;
  }

  .form-control,
  .form-select {
    font-size: 0.95rem;
  }

  .form-control,
  .form-select {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 1rem;
    box-sizing: border-box;
    font-weight: 500;
    margin-bottom: 15px;
    background-color: #f9f9f9;
    transition: border-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
  }
  .form-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    transition: opacity 0.3s ease-in-out;
  }

  .form-pop {
    width: 100%;
    max-width: 100%;
    background-color: #fff;
    padding: 5px;
    color: #333;
    border-radius: 15px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out;
  }
  .form-main {
    background-color: #fead1c;
    padding: 18px 10px;
    border-radius: 10px;
    position: relative;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .get-quote-phone {
    transition: background-color 0.3s ease, transform 0.2s ease;

    background-color: #eb5202;
    color: white;
    width: 50px;
    height: 50px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
  }
  @keyframes bounce {
    0%,
    100% {
      transform: translateY(0);
    }
    50% {
      transform: translateY(-10px);
    }
  }

  .get-quote {
    display: none;
  }

  .navbar-main {
    padding: 10px 0;
  }
  .navbar-main img {
    width: 180px;
  }

  .navbar-main .call-link {
    padding: 8px 12px;
    font-size: 14px;
  }

  .right-no {
    justify-content: center;
  }
  .logo {
    width: 300px;
  }

  /* hero-section  */
  .hero-section {
    overflow: hidden;
    position: relative;
    width: 100%;
    height: 80vh; /* Full viewport height */
    overflow: hidden;
    display: flex;
    align-items: center;
  }
  .hero-section h3 {
    color: #ff8a03;
    font-weight: 700;
    font-size: 3rem;
    line-height: 3rem;
    text-align: center;
  }
  .hero-section h5 {
    color: white;
    font-weight: bold;
    text-align: center;
  }
  .hero-section .content {
    position: relative;
    z-index: 80;
    text-align: center;
  }
  .hero-section p {
    font-weight: 700;
    color: white;
  }

  /* third section  */
  .third-section .infoHeading {
    color: #ff8a03;
    font-size: 2rem;
    font-weight: 700;
  }
  .third-section .infoPAra {
    font-size: 1.1rem;
    margin-top: 20px;
  }

  * third section */ .third-section .infoHeading {
    color: #ff8a03;
    font-size: 2rem;
    font-weight: 700;
  }
  .third-section .infoPAra {
    font-size: 1.1rem;
    margin-top: 20px;
  }

  .third-section img {
    height: 100%;
    width: 90%;
    border-radius: 10px;
    box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.4),
      -10px -10px 30px rgba(255, 255, 255, 0.1);
    transition: box-shadow 0.3s ease-in-out;
  }
  .third-section .counter {
    background-color: #ffdfbb;
    border-radius: 15px;
    display: grid;
    gap: 10px;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    justify-content: center;
    column-gap: 20px;
    padding: 16px 24px;
    color: #ff8a03;
    width: 100%;
    max-width: 90%;
    margin-top: -2rem;

    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  }

  .counter .countValue {
    font-size: 1.3rem;
    font-weight: bold;
    text-align: center;
  }

  .counter .countText {
    font-size: 0.9rem;
    text-align: center;
  }
  .Best-astrologer h5 {
    color: #ff8a03;
    font-weight: bold;
    font-size: 1.8rem;
    text-align: center;
    line-height: 40px;
  }

  .Our-Best-Astrology-Services .our-best {
    color: #ff8a03;
    font-weight: bold;
    font-size: 2rem;
    text-align: center;
    line-height: 40px;
  }

  .commonHeading {
    color: #ff8a03;
    font-weight: bold;
    font-size: 35px;
    text-align: center;
    line-height: 43px;
  }
  .ExperienceHeaidng {
    font-weight: 700;
    color: #e31e25;
    font-size: 2.2rem;
  }
  .Experience-power p {
    font-size: 1.2rem;
  }

  .form-pop {
    width: 90%;
  }

  .form-pop {
    padding: 15px;
  }

  .Form-img {
    height: 200px;
    display: none;
  }

  .btn-book-now {
    font-size: 0.95rem;
  }

  h5 {
    font-size: 1.1rem;
  }

  .form-control,
  .form-select {
    font-size: 0.95rem;
  }

  .form-control,
  .form-select {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 1rem;
    box-sizing: border-box;
    font-weight: 500;
    margin-bottom: 15px;
    background-color: #f9f9f9;
    transition: border-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
  }
  .form-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    transition: opacity 0.3s ease-in-out;
  }

  .form-pop {
    width: 100%;
    max-width: 400px;
    background-color: #fff;
    padding: 5px;
    color: #333;
    border-radius: 15px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out;
  }
  .form-main {
    background-color: #f94612;
    padding: 18px 10px;
    border-radius: 10px;
    position: relative;
  }
}

@media (min-width: 992px) and (max-width: 1199px) {
  .navbar-main {
    padding: 5px 0;
  }
  .navbar-main img {
    width: 250px;
  }

  .navbar-main button {
    padding: 8px 12px;
    font-size: 14px;
  }

  .right-no {
    justify-content: center;
  }

  /* hero-section  */
  .hero-section {
    overflow: hidden;
    position: relative;
    width: 100%;
    height: 80vh; /* Full viewport height */
    overflow: hidden;
    display: flex;
    align-items: center;
  }
  .hero-section h3 {
    color: #ff8a03;
    font-weight: 700;
    font-size: 3rem;
    line-height: 3rem;
    text-align: center;
  }
  .hero-section h5 {
    color: white;
    font-weight: bold;
    text-align: center;
  }
  .hero-section .content {
    position: relative;
    z-index: 80;
    text-align: center;
  }
  .hero-section p {
    font-weight: 700;
    color: white;
  }

  /* third section  */
  .hero-section h3 {
    color: #ff8a03;
    font-weight: 700;
    font-size: 3rem;
    line-height: 3rem;
    text-align: center;
  }
  .hero-section h5 {
    color: white;
    font-weight: bold;
    text-align: center;
  }
  .hero-section .content {
    position: relative;
    z-index: 80;
    text-align: center;
  }
  .hero-section p {
    font-weight: 700;
    color: white;
  }

  /* third section  */
  .third-section .infoHeading {
    color: #ff8a03;
    font-size: 2rem;
    font-weight: 700;
  }
  .third-section p {
    font-size: 0.9rem;
    margin-top: 20px;
  }

  * third section */ .third-section .infoHeading {
    color: #ff8a03;
    font-size: 2rem;
    font-weight: 700;
  }
  .third-section .infoPAra {
    font-size: 1.1rem;
    margin-top: 20px;
  }

  .third-section img {
    height: 100%;
    width: 90%;
    border-radius: 10px;
    box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.4),
      -10px -10px 30px rgba(255, 255, 255, 0.1);
    transition: box-shadow 0.3s ease-in-out;
  }
  .third-section .counter {
    background-color: #ffdfbb;
    border-radius: 15px;
    display: grid;
    gap: 10px;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    align-items: start;
    justify-content: center;
    column-gap: 20px;
    padding: 16px 80px;
    color: #ff8a03;
    width: 100%;
    max-width: 100%;
    margin-top: -2rem;

    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  }

  .Form-img {
    width: 100%;
    height: 200px;
    background-image: url("https://ragavendraswamijyothisyapeetham.com/img/about2.png");
    background-position: center;
    border-bottom: 2px solid white;
    border-radius: 10px;
    margin-bottom: 15px;
  }

  .btn-book-now {
    font-size: 0.95rem;
  }

  h5 {
    font-size: 1.1rem;
  }

  .form-control,
  .form-select {
    font-size: 0.95rem;
  }

  .form-control,
  .form-select {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 1rem;
    box-sizing: border-box;
    font-weight: 500;
    margin-bottom: 15px;
    background-color: #f9f9f9;
    transition: border-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
  }
  .form-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    transition: opacity 0.3s ease-in-out;
  }

  .form-pop {
    width: 100%;
    max-width: 600px;
    background-color: #fff;
    margin-top: 100px;

    padding: 10px;
    color: #333;
    border-radius: 15px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out;
  }
  .form-main {
    background-color: #f94612;
    padding: 20px;
    border-radius: 10px;
    position: relative;
  }
}
