/* responsive.css */
@media (min-width: 992px) {
  .dropdown:hover .dropdown-menu {
    display: block;
  }
}

/* Large devices (desktops, less than 1200px) */
@media (max-width: 1199.98px) {
  :root {
    --nav-item-gap: 20px;
  }

  section {
    padding: 40px 0 !important;
  }

  .logo-container {
    width: 26%;
  }

  .nav-link {
    font-size: 13px;
  }

  .navbar-nav {
    gap: 9px;
  }

  .logo-text h2 {
    font-size: 1.4rem;
  }

  #welcome-sec {
    background: url('../images/Background.svg');
  }

  #welcome-sec {
    padding: 25px 0 15px 0 !important;
  }

  .welcome-slider .owl-nav,
  .welcome-slider .owl-dots {
    opacity: 0;
  }

  #welcome-sec .owl-carousel .owl-stage {
    left: 0;
  }

  #welcome-sec .upper-content {
    padding-top: 270px;
    min-height: auto;
  }

  #welcome-sec .upper-content .statistic-section {
    z-index: 1;
    position: absolute;
    justify-content: center;
    top: 0;
    left: 0;
    right: 0;
    padding: 15px
  }

  .appoinment-sec .checkup-section .search-box {
    width: 100%;
    margin: 0;
    padding: 0;
    margin-bottom: 12px;
  }

  .appoinment-sec .checkup-section .book-appointment-btn {
    width: 100%;
  }

  .appoinment-sec .checkup-section {
    flex-direction: column;
    align-items: start;
    margin: 0;
    border-radius: 0;
  }

  .appoinment-sec .location-info {
    border: none;
    border-top: 1px solid #D4D4D4;
    padding: 0;
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-top: 26px;
    padding-top: 26px;
  }

  .appoinment-sec .events-section .event-heading .event-item {
    border-radius: 0;
  }

  .appoinment-sec .container {
    border-radius: 0;
  }

  .appoinment-sec .events-section .event-item a::after {
    right: 100%;
  }

  .location-info p:nth-child(2) {
    font-size: 15px;
  }

  .event-list .event-item {
    margin: 0 10px;
  }


  .appoinment-sec .events-section .event-item:not(:first-child):not(:last-child)::after {
    display: none;
  }

  .checkup-section-line {
    flex-direction: column;
    margin: 0;
  }

  .checkup-section-line {
    width: 100%;
  }

  .appoinment-sec .checkup-section .search-box input {
    width: 100%;
  }

  .quality-care-section .bg-wraper {
    padding: 30px;
  }

  .quality-image {
    margin: 0;
    margin-top: 15px;
  }

  .welcome-sec-img {
    width: 100%;
  }

  .google-rating {
    width: 100%;
  }

  .google-rating .google-box-wraper {
    width: 100%;
    justify-content: center;
  }

  s.dropdown-toggle::before {
    display: block;
  }
}

/* Medium devices (tablets, less than 992px) */
@media (max-width: 991.98px) {


  .container {
    padding: 0 15px;
  }

  .contact-widget {
    display: none;
  }

  .logo-container {
    width: 93%;
    justify-content: space-between;
  }

  .logo-img {
    width: 26%;
  }

  #welcome-sec .upper-content {
    padding-top: 400px;
  }

  .nav-link {
    font-size: 16px;
  }

  .appoinment-sec {
    background: url('../images/mobile-bg.jpg');
    background-repeat: no-repeat;
    background-size: 100%;
  }

  #welcome-sec .upper-content .info-box {
    margin: 0 30px;
  }

  .appoinment-sec .checkup-section {
    margin-top: 26px;
  }

  .patient-sec .video-card {
    height: 240px;
  }

  .specialty-description {
    font-size: 17px;
  }

  .section-title {
    text-align: center !important;
    margin: 0;
  }

  .quote-content {
    padding: 30px 20px;
  }

  .search-section-find-pag {
    padding: 20px !important;
    border-radius: 0;
  }

  .search-section-find-pag .search-input {
    margin-bottom: 0;
  }

  .doctor-card {
    flex-direction: column;
  }
}

/* Small devices (landscape phones, less than 768px) */
@media (max-width: 767.98px) {

  .top-doctors-section .doctor-card .doctor-image {
    height: 340px;
  }

  .specialty-content .specialty-title {
    margin-bottom: 0;
  }

  section {
    padding: 22px 0 !important;
  }

  .quality-care-section {
    padding: 0px 0 30px 0 !important;
  }

  p {
    font-size: 17px;
  }

  .quality-content .section-tag {
    display: flex;
    justify-content: center;
  }

  .quality-content .section-title {
    text-align: center;
  }

  .section-title br {
    display: none;
  }

  .quality-care-section .section-tag,
  .section-tag {
    margin-bottom: 7px !important;
  }

  .btn {
    width: 100%;
  }

  .main-header {
    padding: 8px 0;
  }

  #welcome-sec .upper-content .statistic-section {
    justify-content: space-between;
  }

  .navbar-toggler,
  #navbarNav {
    display: none;
  }

  .logo-img {
    width: 60%;
  }

  .navbar-brand {
    width: 60%;
  }

  .btn-emergency {
    width: 28%;
    font-size: 12px;
  }

  .welcome-sec-img {
    top: 32%;
    bottom: 0;
    z-index: 0;
  }

  .specialties-title {
    font-size: 26px;
  }

  .specialty-link {
    display: none;
  }

  .specialty-item {
    border: 1px solid #D4D4D4;
    margin-bottom: 16px;
    padding: 16px;
    border-radius: 8px;
  }

  .specialties-section {
    padding: 0;
  }

  .services-section {
    padding: 10px 0;
  }

  .patient-stories-header h2 {
    font-size: 24px;
    margin-bottom: 24px;
    ;
  }

  .patient-stories-header {
    margin-bottom: 24px;
    ;
  }

  .section-header .section-title {
    margin: 0;
  }


  .section-header {
    margin: 0 !important;
  }

  .doctors-section .section-header {
    margin-bottom: 24px !important;
  }

  .rare-cases-section {
    padding: 10px 0;
  }

  .google-rating .google-box-wraper {
    justify-content: center;
  }

  .search-sec .search-box-main {
    flex-wrap: wrap;
  }

  .mobile-footer {
    display: block;
    margin-bottom: 66px;
  }

  footer {
    display: none;
  }

  .scroll-to-top {
    bottom: 30%;
  }

  #welcome-sec .upper-content {
    padding-top: 256px;
  }

  .features-grid .feature-item span {
    font-size: 17px;
  }

  .features-grid .feature-item {
    margin-bottom: 16px;
  }

  .quality-image {
    margin-top: 28px;
  }

  .top-doctors-section {
    padding: 30px 0;
  }

  .top-doctors-section .doctor-name,
  .top-doctors-section .doctor-specialty,
  .top-doctors-section .doctor-credentials {
    text-align: center;
  }

  .treatment-content p {
    font-size: 17px;
  }

  .treatment-content h4 {
    margin-bottom: 16px !important;
  }

  .search-sec .keyboard-title {
    font-size: 22px;
    margin-top: 24px;
  }

  .search-sec .key-space {
    width: 45% !important;
    height: 32px !important;
  }

  .search-sec .key-search {
    width: 40% !important;
    background: #153C89 !important;
    height: 32px !important;
  }

  .search-sec .backspace {
    height: 32px !important;
  }

  .search-sec .key {
    padding: 6px 0;
    width: 33px;
    height: 46px;
    margin: 0 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    cursor: pointer;
    border-radius: 6px;
    background: #FFFFFF;
    box-shadow: 0 0.642px 0 0 rgba(0, 0, 0, 0.30);
    font-size: 15px;
    font-weight: 500;
    transition: background-color 0.2s;
  }

  .search-sec .search-form p {
    font-size: 16px;
    font-weight: 600;
  }

  .awards-section .section-title {
    margin-bottom: 24px;
  }

  .section-title {
    font-size: 25px;
    margin: 0;
    line-height: 30px;
  }

  .specialties-header {
    margin-bottom: 15px;
  }

  #welcome-sec .upper-content .info-box {
    margin: 0;
    margin-right: 15px;
  }

  .quality-care-section .bg-wraper {
    padding: 30px 20px;
  }

  .quality-care-section .bg-wraper .col-lg-6 {
    padding: 0 9px;
  }

  .owl-theme .owl-dots .owl-dot span {
    width: 8px;
    height: 8px;
  }

  .mobile-center-image {
    height: 416px;
    width: 100%;
    object-fit: cover;
  }

  .case-card {
    height: 240px;
  }

  .location-info p:nth-child(2) {
    font-size: 15px;
    margin-bottom: 26px;
  }

  .hero-section-2 {
    margin-top: 30px;
  }

  .hero-section-2 .text-content p {
    margin-bottom: 22px;
  }

  .custom-btn-container {
    margin-bottom: 30px;
  }

  .specialties-section {
    margin: 0;
  }

  .quality-content .section-tag {
    margin-bottom: 4px;
  }

  .quality-care-section .quality-content .section-title {
    margin-bottom: 24px;
  }

  .quality-content .section-description {
    margin-bottom: 24px;
  }

  .quality-content .features-grid {
    margin-bottom: 16px;
  }

  .patient-sec .video-title {
    text-align: center;
  }

  .quote-content {
    padding: 0;
    padding-top: 24px;
  }

  .health-awareness-section .video-title,
  .doctor-name {
    text-align: center;
  }

  .health-awareness-section .section-title {
    margin-bottom: 24px;
  }

  .health-awareness-section .video-thumbnail>img {
    min-height: 240px;
  }

  .treatment-section .col-lg-6 img {
    padding: 0 20px;
    object-fit: cover !important;
  }

  .owl-theme .owl-nav.disabled+.owl-dots {
    margin-top: -10px !important;
  }

  .case-card {
    margin-bottom: 24px;
  }

  .results-section .doctor-image {
    width: 100%;
    height: 100%;
    border-radius: 12px;
  }

  .results-section .doctor-info {
    width: 70%;
  }

  .results-section .doctor-name {
    text-align: start;
    margin-bottom: 4px;
    font-weight: 400;
    font-size: 22px;
  }

  .results-section .doctor-credentials,
  .results-section .doctor-specialty {
    margin-bottom: 4px;
    font-size: 18px;
  }

  .results-section .availability {
    padding: 0px 0 0px 0;
  }

  .view-profile {
    display: block;
  }

  .search-section-find-pag {}

  .search-section-find-pag .search-input {
    margin-right: 16px;
    font-size: 14px;
  }

  .search-section-find-pag .popular-title {
    margin-bottom: 8px;
  }

  .search-section-find-pag .popular-tag {
    padding: 3px 5px;
    font-size: 11px;
  }

  .search-section-find-pag {
    margin-bottom: 0px;
    padding-bottom: 0px !important;
  }

  .results-section .results-count {
    margin-bottom: 20px;
    text-align: center;
  }

  .btn {
    padding: 10px 15px;
    font-size: 14px;
  }

  .appoinment-sec .checkup-section .book-appointment-btn {
    font-size: 14px;
  }

  .event-list .event-item {
    margin: 0 60px;
  }

  .appoinment-sec {
    padding: 0 !important;
    padding-bottom: 10px !important;
  }

  .hero-section-2 .text-content h1 {
    font-size: 22px;
    margin-bottom: 22px;
  }

  .specialty-title {
    margin-bottom: 4px;
  }

  .list-group-item {
    display: flex;
    align-items: center;
  }

  .list-group-item img {
    margin-right: 16px;
  }

  .quality-care-section {
    margin: 0;
  }

  .section-tag {
    font-size: 22px;
    margin-bottom: 4px;
  }

  .section-title {
    font-size: 26px;
    text-align: center;
    line-height: 39px;

  }

  .training-card {
    margin: 0 10px;
    padding: 20px;
  }

  .search-sec .search-header {
    margin-bottom: 16px;
    text-align: center;
  }

  .search-sec .search-card {
    padding: 16px;
  }

  .search-sec .search-input {
    width: 100%;
    padding: 9px 15px;
  }

  #doctor-search-form .search-input {
    padding: 9px 15px 9px 36px;
  }

  .static-cards-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .specialty-card {
    padding: 20px;
  }

  .specialty-title {
    font-size: 18px;
  }

  .specialty-title i {
    font-size: 24px;
  }

  .specialty-description {
    font-size: 15px;
  }

  .features-grid-container {
    grid-template-columns: 1fr;
    /* Stack items in a single column */
    gap: 25px;
    /* Adjust gap for single column */
  }

  .results-section .doctor-card {
    padding: 4px;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .card-row {
    flex: 0 0 auto;
    width: 100%;
    margin-left: 7px;
    margin-top: 7px;
  }

  .mobile-appointment {
    display: block;
    text-align: center;
    background: #f5f7fe;
    padding: 16px;
    border-radius: 12px;
    width: 100%;
    margin-top: 24px;
  }

  .availability-text {
    font-weight: 500;
    margin-bottom: 8px;
    color: #333;
  }

  .days {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
  }

  .day {
    width: 30px;
    height: 30px;
    line-height: 30px;
    border-radius: 50%;
    background: #ffff;
    color: #9E9E9E;
    font-size: 14px;
    font-weight: 400;
    font-weight: 600;
  }

  .day.active {
    background: #E0EFE5;
    color: #258142;
  }

  .page-header {
    /*display: none;*/
    background-position-x: 65% !important;
    height: 170px;
    margin-bottom: 0px;
  }

  .page-header .page-title {
    font-size: 32px;
  }

  .page-header p {
    font-size: 16px;
  }

  .search-section-find-pag .book-apoinment-hero {
    padding: 0px 10px;
    gap: 10px;
    text-align: center;
    margin-bottom: 20px;
  }

  .search-section-find-pag .book-apoinment-hero span {
    font-size: 16px;
    text-align: left;
  }

  .search-section-find-pag .book-apoinment-hero a {
    width: max-content;
    margin: 10px 0;
    justify-content: center;
    font-size: 16px;
    display: flex;
    align-items: center;
  }

  #search-dr-input {
    width: 100%;
    height: 100%;
  }

  .mobile-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    padding: 0px 16px;
    background-color: #fff;
    font-weight: 500;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  }

  .mobile-breadcrumb .breadcrumb-icon {
    color: #555;
  }

  .search-section-find-pag {
    margin-top: 0;
  }

  .section-subtitle {
    margin-bottom: 4px;
  }

  #callModal .modal-dialog, #appointmentModal .modal-dialog {
    width: 100%;
    max-width: fit-content;
  }
  #appointmentModal .modal-dialog .modal-content {
    height: 75vh;
    overflow-y: auto;
  }
  .page-header .col-8 img {
    height: 100%;
    position: absolute;
    top: 0;
  }
  .page-header .col-md-4 {
    position: relative;
    z-index: 2;
    background: rgb(235 245 236 / 40%);
  }
  .doctor-details-list, .doctor-buttons {
    padding: 0 5px;
  }
  .detail-label {
    width: 40%;
  }
  .doctor-buttons .btn {
    width: 100%;
  }
  .page-header.about_header {
    height: 280px;
  }
  .page-header.about_header::after {
    background-size: contain;
  }
  .page-header.about_header .col-md-6 {
    z-index: 2;
    background: rgb(251 251 251 / 50%);
  }
  .img-items li {
    min-width: 100%;
    margin-bottom: 10px;
  }
  .two-row li {
    max-width: 100%;
    width: 100%;
  }
  .message-box .col-md-3 {
    width: 100%;
    text-align: center;
    margin-bottom: 16px;
  }
  .message-box .col-md-9 {
    padding-left: 0;
  }
  .gradient-bg {
    background: none;
  }
  .address-box {
    background: RGBA(21, 60, 137, 1);
  }
  .address-form .address-box {
    padding: 40px 16px;
  }
  .loc-data {
    flex-wrap: nowrap;
  }
  .loc-data:last-child {
    border-bottom: 0 none;
  }
  .right-content {
    padding: 40px 0 0;
  }
  .right-content .nav-item {
    width: auto;
  }
  .right-content .nav-tabs .nav-link {
    padding: 16px 12px !important;
  }
  .location-cards figure {
    flex-wrap: wrap;
  }
  .location-cards figure figcaption {
    padding: 15px 0 0;
  }
  .location-cards figure img.loc-image {
    max-width: 100%;
    width: 100%;
  }
  .callback-form.contact-form {
    margin-bottom: 0;
  }
  .tpa_header .col-6{
    position: relative;
    z-index: 2;
    background: rgb(255 255 255 / 63%);
    width: 100%;
  }
  .page-header.tpa_header::after {
    left: 0;
    filter: blur(3px);
  }
  .nursing_header .col-md-6 {
    position: relative;
    z-index: 5;
    background-color: rgba(255, 255, 255, 0.75);
  }
  .nursing_about .quality-image figcaption {
    padding: 16px;
  }
  .nursing_about .quality-image figcaption strong {
    font-size: 30px;
  }
  .nursing_about .quality-image {
    margin: 0;
  }
  .quality-care-section {
    margin: 0;
    margin-top: 30px;
  }
  .mission-vision .section-desc {
    width: 100%;
    gap: 10px;
  }
  .img-1-overlay {
    transform: none;
    position: relative;
  }
  .mission-vision .row:nth-child(even) .col-lg-6, .alternate-rows .row:nth-child(even) .col-lg-8 {
    order: initial;
  }
  .sub-title {
    font-size: 22px;
    margin-bottom: 20px;
  }
  .blue-gradient .white-card, .leader-desc {
    margin-right: 0;
  }
  .blue-gradient {
    background: linear-gradient(0deg,rgba(243, 246, 253, 1) 50%, rgba(242, 255, 254, 1) 50%);
  }
  .blue-gradient .white-card h5 {
    width: 60%;
    font-size: 16px;
  }
  .approvals-col {
    padding-left: 20px;
    padding-top: 30px;
  }
  .uppercase-title {
    font-size: 20px;
  }
  .leader-details {
    flex-wrap: wrap;
    margin-bottom: 30px;
  }
  .leader-img {
    text-align: center;
    max-width: 100%;
  }
  .name-area h6, .education h6, .center-white-box .star-list li, .loc-data h6 {
    font-size: 16px;
  }
  .highlight-wrapper {
    gap: 20px;
    justify-content: center;
  }
  .center-white-box {
    width: 90%;
    padding: 20px;
  }
  .center-white-box .star-list, .center-white-box .star-list:first-child{
    margin-right: 0;
    width: 100%;
  }
  .our-gallery .owl-carousel.owl-theme .owl-nav.disabled+.owl-dots {
    margin-top: 10px !important;
  }
  .left-form-section {
    padding-right: 15px;
  }
  .approvals-col .address-box {
      background: none;
  }
  .approvals-col .address-box .loc-data {
    padding-bottom: 0;
  }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  .top-bar-left .me-3 {
    margin-right: 0 !important;
  }

  .search-section-find-pag .book-apoinment-hero span {
    font-size: 14px;
  }

  .doctor-card-specialist {
    display: block;

  }

  .doctor-details-list {
    margin-top: 10px;
  }

  .doctor-details-list .detail-label,
  .doctor-details-list .detail-value {
    font-size: 16px;
  }

  .doctor-details-right {
    max-width: 100%;
  }

  .doctor-summary-block {
    padding: 12px 0 0 0;
    text-align: left;
  }

  .doctor-summary-block .doctor-name {
    text-align: left;
  }

  .doctor-summary-block .doctor-buttons {
    gap: 12px;
  }

  .doctor-details-left {
    max-width: 100%;
  }

  .specialty-card-container {
    gap: 0;
  }

  .features-grid-container {
    gap: 10px;
  }

  .feature-item img {
    width: 20px;
  }

  .feature-item p {
    font-size: 16px;
    line-height: 24px;
  }

  .why-dev-nandini-sec .specialty-title {
    margin-bottom: 4px;
    padding-bottom: 5px;
  }

  .accordion-content p {
    font-size: 16px;
    line-height: 24px;
    margin-top: -10px;
  }

  .training-card {
    padding-top: 0;
  }

  #featureSlider {
    margin-left: 20px;
  }

  #featureSlider .card-text {
    padding-right: 0;
  }

  #featureSlider .arrow-icon {
    top: 20px;
  }

  /* .owl-carousel .owl-stage {
    position: relative;
    left: -13px;
  } */
  .training-section .static-card:not(:last-child) {
    margin-bottom: 15px;
  }

  .training-section .doctor-details p {
    line-height: 24px;
  }

  .training-section .static-cards-grid {
    display: block;
  }

  .specialty-card.mb-5 {
    margin-bottom: 0rem !important;
  }

  /*.accordion-header{
    padding-bottom: 0px;
  }*/
  .accordion-question {
    font-size: 16px;
  }

  .main-wrapper {
    display: block;
    margin-bottom: 30px;
  }

  .specialty-card {
    margin-top: 20px;
  }

  .main-wrapper .side-bar {
    margin-top: 20px;
  }

  .doctor-profile-card .profile-image-container {
    display: block;
    width: 100%;
    height: auto;
  }

  .doctor-profile-card .profile-image-container img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
  }

  .specialty-title {
    font-size: 20px;
    padding-bottom: 5px;
  }

  .callback-form .input-box {
    padding: 10px 12px;
  }

  .callback-form h2 {
    font-size: 22px;
  }

  .doctor-profile-card {
    margin-bottom: 20px;
  }

  .specialty-title img {
    height: 20px;
  }

  .single-doctor-main-wrapper {
    display: block !important;
  }

  .doctor-profile-card .share-icon-container {
    right: 0;
    width: 40px;
    height: 40px;
  }

  .doctor-profile-card .detail-row {
    padding: 6px 0;
  }

  .doctor-profile-card .detail-label,
  .doctor-profile-card .detail-value {
    font-size: 16px;
  }

  .doctor-profile-card .doctor-name {
    text-align: left;
    font-size: 28px;
  }

  .doctor-profile-card .profile-details-container {
    padding: 10px 5px;
  }

  .doctor-profile-card .doctor-specialty {
    font-size: 18px;
  }

  .logo-img {
    width: 55%;
  }

  .btn-emergency {
    width: 32%;
    font-size: 12px;
    text-align: right;
  }

  .logo-container {
    width: 100%;
  }

  #welcome-sec .upper-content .statistic-section .info-box .label {
    font-size: 13px;
  }

  .appoinment-sec .events-section .event-item {
    min-width: 150px;
  }

  .feature-item i {
    margin-right: 0;
    margin-bottom: 10px;
    /* Space below icon when stacked */
    font-size: 32px;
    /* Slightly larger icon when stacked */
  }

  .feature-item p {
    font-size: 16px;
  }

  .results-section .doctor-name {
    font-size: 21px;
    font-weight: 700;
    text-align: center;
  }

  .results-section .doctor-credentials,
  .results-section .doctor-specialty {
    font-size: 15px;
  }

  .scroll-to-top {
    bottom: 10%;
    right: 17px;
  }

}

/* Extra extra small devices */
@media (max-width: 359.98px) {
  .top-bar span {
    font-size: 13px;
  }

  .header-top-icon {
    flex-direction: column;
  }
}