/* XXL devices (very large screens, 1400px and up) */
@media (min-width: 1400px) {
}

/* Extra large devices (large desktops, 1200px to 1399.98px) */
@media (min-width: 1200px) and (max-width: 1399.98px) {
}

/* Large devices (desktops, 992px to 1199.98px) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .navbar-brand img {
    height: 50px;
  }

  .breadcum-section {
    margin-top: 65px;
  }
  .my-faq-section {
    position: relative;
    padding: 80px 0 !important;
    background: linear-gradient(135deg, #0695c1 0%, #057aa0 45%, #044f6a 100%);
    overflow: hidden;
  }

  .why-choose-us.dark-section {
    padding: 80px 0 !important;
  }

  .navbar-expand-lg .navbar-nav .nav-link {
    padding-right: 5px;
    padding-left: 0;
  }

  .estate-cred-cta {
    position: relative;
    padding: 80px 0 !important;
    background: linear-gradient(135deg, #0695c1 0%, #057aa0 45%, #044f6a 100%);
    overflow: hidden;
  }

  .estate-cred-cta-content {
    padding-left: 0px !important;
    color: #fff;
  }



  .estate-cred-patners-table-wrap {
    overflow-x: auto;
    max-width: 1000px !important;
}
















}

/* Medium devices (tablets, 768px to 991.98px) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .navbar-brand img {
    height: 45px;
  }

  .main-header .container-fluid {
    padding: 0 10px !important;
  }

  .cta-btn {
    width: fit-content !important;
    padding: 10px 20px;
  }

  .hero-navigation {
    display: none;
  }

  .slide-counter {
    display: none;
  }

  .swiper-progress {
    width: 140px;
    bottom: 25px;
  }

  section {
    padding: 60px auto;
  }

  .hero-slider-section {
    position: relative;
    height: 85vh;
    min-height: 450px;
    overflow: hidden;
  }

  .main-title {
    font-size: 2.2rem;
    margin-bottom: 10px;
  }

  .description {
    font-size: 1.1rem;
    margin-bottom: 30px;
  }

  .section-padding {
    padding: 50px 0;
  }
  .my-vis-mis-val-section {
    padding: 45px 0;
  }
  .counter-item {
    position: relative;
    padding: 30px 25px 5px;

    margin-bottom: 20px;
  }

  .project-content p {
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Limit to 2 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .projects-section .container-fluid {
    padding: 0 10px !important;
  }

  .project-content {
    padding: 20px 10px 30px;
  }

  .mb-5 {
    margin-bottom: 1rem !important;
  }

  .testimonial-card {
    background-color: var(--white);
    border-radius: 10px;
    padding: 0px 10px;
    /* box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); */
    margin: 20px 0;
  }

  .testimonial-card:before {
    content: "\201C";
    position: absolute;
    top: 92px;
    left: 0px;
    font-size: 4rem;
    color: var(--light-gold);
    font-family: "Playfair Display", serif;
  }

  .main-footer {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.56)),
      url("https://images.unsplash.com/photo-1560518883-ce09059eeffa?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80");
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding-top: 50px;
  }

  .footer-logo img {
    height: 42px;
  }

  .offcanvas-body {
    flex-grow: 1;
    padding: var(--bs-offcanvas-padding-y) var(--bs-offcanvas-padding-x);
    overflow-y: auto;
    background: #f9fdfa;
  }

  .navbar-toggler {
    color: rgba(255, 255, 255, 0) !important;
  }

  .back-to-top {
    position: fixed;
    bottom: 20px;
    right: 10px;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--bs-cyan) 0%, var(--bs-info) 100%);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(55, 196, 212, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .btnicon-whatsapp,
  .btnicon-call {
    width: 40px;
    height: 40px;
    left: 7px;
    font-size: 22px;
  }

  .btnicon-whatsapp {
    bottom: 20px;
  }
  .our-team-section {
    padding: 45px 0;
  }
  .btnicon-call {
    bottom: 72px;
  }
  .py-5 {
    padding-top: 0rem !important;
    padding-bottom: 0rem !important;
  }
  .location-search {
    margin-bottom: 20px;
  }
  .contact-item {
    margin-bottom: 20px;
  }

  .contact-info-section .row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }

  .contact-info-section .row > div {
    flex: 0 0 50%;
    max-width: 50%;
  }

  /* 3rd card goes to next row and centers */
  .contact-info-section .row > div:nth-child(3) {
    flex: 0 0 50%;
    max-width: 50%;
    margin-left: auto;
    margin-right: auto;
  }

  .estate-cred-cta {
    padding: 60px 0 10px;
  }

  .why-choose-us.dark-section {
    padding: 50px 0;
  }

  .my-client-section {
    padding: 50px 0;
    background: #fff;
  }

  .my-faq-section {
    padding: 40px 0 60px;
  }

  .breadcum-section {
    position: relative;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 80px 20px;
    margin-top: 60px;
  }

  .services-view-inn .services-slider-container {
    padding: 15px;
  }

  .services-view-inn {
    padding: 60px 0;
    background: #f8f9fa;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .services-img img {
    object-fit: contain !important;
    max-height: 400px !important;
  }

  .loan-type-selector {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px !important;
    margin-top: 10px;
    flex-direction: row !important;
  }

  .loan-type-label {
    padding: 10px !important;
  }

  .loan-type-option {
    width: fit-content !important;
  }

  .contact-info-section {
    margin-bottom: 50px;
  }

  .contact-image {
    height: 100%;
    max-height: 400px !important;
    min-height: 318px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
  }

  .estate-cred-patners {
    background: #f5f7fb;
    padding: 15px;
  }
}

/* Small devices (phones, 576px to 767.98px) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .navbar-brand img {
    height: 45px;
  }

  .main-header .container-fluid {
    padding: 0 10px !important;
  }

  .cta-btn {
    width: fit-content !important;
    padding: 10px 20px;
  }

  .hero-navigation {
    display: none;
  }

  .slide-counter {
    display: none;
  }

  .swiper-progress {
    width: 140px;
    bottom: 25px;
  }

  section {
    padding: 40px auto;
  }

  .hero-slider-section {
    position: relative;
    height: 85vh;
    min-height: 450px;
    overflow: hidden;
  }

  .main-title {
    font-size: 2.2rem;
    margin-bottom: 10px;
  }

  .description {
    font-size: 1.1rem;
    margin-bottom: 30px;
  }

  .section-padding {
    padding: 50px 0;
  }

  .counter-item {
    position: relative;
    padding: 30px 25px 5px;

    margin-bottom: 20px;
  }

  .project-content p {
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Limit to 2 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .projects-section .container-fluid {
    padding: 0 10px !important;
  }

  .project-content {
    padding: 20px 10px 30px;
  }

  .mb-5 {
    margin-bottom: 1rem !important;
  }

  .testimonial-card {
    background-color: var(--white);
    border-radius: 10px;
    padding: 0px 10px;
    /* box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); */
    margin: 20px 0;
  }

  .testimonial-card:before {
    content: "\201C";
    position: absolute;
    top: 92px;
    left: 0px;
    font-size: 4rem;
    color: var(--light-gold);
    font-family: "Playfair Display", serif;
  }
  .estate-cred-patners-add {
    padding: 10px 1px;
  }
  .main-footer {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.56)),
      url("https://images.unsplash.com/photo-1560518883-ce09059eeffa?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80");
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding-top: 30px;
  }

  .footer-logo img {
    height: 42px;
  }

  .offcanvas-body {
    flex-grow: 1;
    padding: var(--bs-offcanvas-padding-y) var(--bs-offcanvas-padding-x);
    overflow-y: auto;
    background: #004119;
  }

  .navbar-toggler {
    color: rgba(255, 255, 255, 0) !important;
  }

  .back-to-top {
    position: fixed;
    bottom: 20px;
    right: 10px;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #d4af37 0%, #b8860b 100%);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .why-choose-us.dark-section {
    padding: 40px 0;
  }

  .estate-cred-cta {
    padding: 50px 0 10px;
  }

  .my-faq-section {
    padding: 40px 0;
  }

  .my-faq-section-title {
    margin-bottom: 20px;
  }

  .my-faq-section-question {
    text-align: left;
  }

  .my-client-section {
    padding: 40px 0;
    background: #fff;
  }

  .my-vis-mis-val-section {
    padding: 40px 0;
  }

  .my-vis-mis-val-header {
    text-align: center;
    margin-bottom: 30px;
  }

  .breadcum-section {
    min-height: 30vh;
    padding: 60px 20px;
  }

  #projectsTab {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-start !important;
  }

  #projectsTab .nav-item {
    margin: 0px 5px;
  }

  .pro-view-sticky {
    margin-top: 30px;
  }
  .services-view-inn .services-slider-container,
  .services-view-inn .services-sidebar {
    padding: 10px;
  }

  .services-img {
    width: 100%;
    max-height: 300px;
    border-radius: 0px;
    object-fit: contain;
    overflow: hidden;
    margin-bottom: 10px;
  }

  .services-img img {
    width: 100%;
    max-height: 300px;
    border-radius: 0px;
    object-fit: contain;
  }
  .section-header h2 {
    font-size: 1.5rem;
  }

  .loan-type-label {
    padding: 10px !important;
  }

  .loan-type-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 10px !important;
    margin-top: 10px;
    flex-direction: row !important;
  }

  .file-upload {
    padding: 15px !important;
  }

  .file-info {
    /* margin-top: 15px; */
    font-size: 0.9rem;
    margin: 5px 0 0 !important;
    color: var(--light-text);
  }

  .contact-info-section {
    margin-bottom: 20px !important;
  }

  .file-upload p {
    margin-bottom: 0 !important;
  }

  .contact-image {
    height: auto !important;
    min-height: 250px !important;
    border-radius: 12px;
    overflow: hidden;
    max-height: 300px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
  }

  .form-image-section {
    margin-bottom: 40px !important;
  }

  .hyderabad-map {
    height: 250px !important;
  }

  .my-login-page {
    max-width: 100% !important;
  }

  .my-dashboard .stat-header {
    margin-bottom: 0px !important;
  }

  /* TABLE WRAPPER */
  .estate-cred-patners-table-wrap {
    width: 100%;
    max-width: 300px !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; /* smooth iOS scroll */
  }

  .estate-cred-patners-table-wrap {
    overflow-x: auto;
    max-width: 320px !important;
  }

  .estate-cred-patners {
    background: #f5f7fb;
    padding: 20px 10px !important;
  }
}

/* Extra small devices (phones, less than 576px) */
@media (max-width: 575.98px) {
  .mountains {
    height: 25px;
  }

  .navbar-brand img {
    height: 45px;
  }
  .menu-img img {
    height: 23px;
  }
  .main-header .container-fluid {
    padding: 0 10px !important;
  }

  .cta-btn {
    width: fit-content !important;
    padding: 10px 20px;
  }

  .hero-navigation {
    display: none;
  }

  .slide-counter {
    display: none;
  }

  .swiper-progress {
    width: 140px;
    bottom: 25px;
  }

  /* section {
    padding: 40px auto;
  } */
  .contact-item {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    min-height: 250px;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 65, 25, 0.08);
    margin-bottom: 20px;
  }
  .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 88%;
    background-color: var(--primary-green);
    opacity: 0.85;
    z-index: 2;
  }
  .hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 88%;
    background-image: url("https://images.unsplash.com/photo-1600596542815-ffad4c1539a9?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1170&q=80");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
  }
  .my-5 {
    margin-top: -2rem !important;
    margin-bottom: -1rem !important;
  }
  .py-5 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }
  .breadcum-section {
    position: relative;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 80px 20px;
    margin-top: 44px;
  }
  .hero-slider-section {
    position: relative;
    height: 85vh;
    min-height: 450px;
    overflow: hidden;
  }
  .contact-inn {
    padding: 35px 0 0 0;
  }
  .main-title {
    font-size: 2.2rem;
    margin-bottom: 10px;
  }

  .description {
    font-size: 1.1rem;
    margin-bottom: 30px;
  }
  .hero-btn,
  .enquiry-btn {
    padding: 7px 7px;
  }
  .location-search {
    margin-bottom: 10px;
  }
  .section-padding {
    padding: 40px 0;
  }
  .features-cards {
    padding-left: 0;
    padding-top: 15px;
  }
  .our-team-section {
    padding: 30px 0;
  }

  .counter-item {
    position: relative;
    padding: 30px 25px 5px;

    margin-bottom: 20px;
  }

  .project-content p {
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Limit to 2 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .projects-section .container-fluid {
    padding: 0 10px !important;
  }

  .project-content {
    padding: 20px 10px 30px;
  }

  .mb-5 {
    margin-bottom: 1rem !important;
  }

  .testimonial-card {
    background-color: var(--white);
    border-radius: 10px;
    padding: 0px 10px;
    /* box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); */
    margin: 20px 0;
  }

  .testimonial-card:before {
    content: "\201C";
    position: absolute;
    top: 92px;
    left: 0px;
    font-size: 4rem;
    color: var(--light-gold);
    font-family: "Playfair Display", serif;
  }

  .main-footer {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.56)),
      url("https://images.unsplash.com/photo-1560518883-ce09059eeffa?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80");
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding-top: 30px;
  }

  .footer-logo img {
    height: 42px;
  }

  .offcanvas-body {
    flex-grow: 1;
    padding: var(--bs-offcanvas-padding-y) var(--bs-offcanvas-padding-x);
    overflow-y: auto;
    background: #f4f4f4;
  }

  .navbar-toggler {
    color: rgba(255, 255, 255, 0) !important;
  }

  .back-to-top {
    position: fixed;
    bottom: 20px;
    right: 10px;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #d4af37 0%, #b8860b 100%);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .why-choose-us.dark-section {
    padding: 40px 0;
  }

  .estate-cred-cta {
    padding: 50px 0 10px;
  }

  .my-faq-section {
    padding: 40px 0;
  }

  .my-faq-section-title {
    margin-bottom: 20px;
  }

  .my-faq-section-question {
    text-align: left;
  }

  .my-client-section {
    padding: 40px 0;
    background: #fff;
  }

  .my-vis-mis-val-section {
    padding: 40px 0;
  }

  .my-vis-mis-val-header {
    text-align: center;
    margin-bottom: 30px;
  }

  .breadcum-section {
    min-height: 30vh;
    padding: 60px 20px;
  }

  #projectsTab {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-start !important;
  }

  #projectsTab .nav-item {
    margin: 0px 5px;
  }

  .pro-view-sticky {
    margin-top: 30px;
  }
  .services-view-inn .services-slider-container,
  .services-view-inn .services-sidebar {
    padding: 10px;
  }

  .services-img {
    width: 100%;
    max-height: 300px;
    border-radius: 0px;
    object-fit: contain;
    overflow: hidden;
    margin-bottom: 10px;
  }

  .services-img img {
    width: 100%;
    max-height: 300px;
    border-radius: 0px;
    object-fit: contain;
  }
  .section-header h2 {
    font-size: 1.5rem;
  }

  .loan-type-label {
    padding: 10px !important;
  }

  .loan-type-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 10px !important;
    margin-top: 10px;
    flex-direction: row !important;
  }

  .file-upload {
    padding: 15px !important;
  }

  .file-info {
    /* margin-top: 15px; */
    font-size: 0.9rem;
    margin: 5px 0 0 !important;
    color: var(--light-text);
  }

  .contact-info-section {
    margin-bottom: 20px !important;
  }

  .file-upload p {
    margin-bottom: 0 !important;
  }

  .contact-image {
    height: auto !important;
    min-height: 250px !important;
    border-radius: 12px;
    overflow: hidden;
    max-height: 300px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
  }

  .form-image-section {
    margin-bottom: 40px !important;
  }

  .hyderabad-map {
    height: 250px !important;
  }

  .my-login-page {
    max-width: 100% !important;
  }

  .my-dashboard .stat-header {
    margin-bottom: 0px !important;
  }

  /* TABLE WRAPPER */
  .estate-cred-patners-table-wrap {
    width: 100%;
    max-width: 300px !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; /* smooth iOS scroll */
  }

  .estate-cred-patners-table-wrap {
    overflow-x: auto;
    max-width: 320px !important;
  }

  .estate-cred-patners {
    background: #f5f7fb;
    padding: 20px 10px !important;
  }
}
