/* Collapsible Button */
.coll-btn {
    width: 100%;
    background: #fff;
    border: none;
    text-align: left;
    padding: 23px;
    cursor: pointer;
    font-size: 17px;
    font-weight: 700;
    color: #3d3c3c;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

/* Collapsible Content */
.coll-content-new {
    max-height: 0;
    overflow: hidden;
    padding: 0 18px;
    transition: max-height 0.4s ease-in-out;
}


.doctor-lang {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #555;
}

.doctor-lang-icon {
    width: 15px;
    height: 15px;
    color: #00a8cc;
}
@media (max-width: 768px) {
    .mobile-center {
        text-align: left;
        justify-content: left;
        display: flex;
    }

    .doctor-lang {
        text-align: left;
    }
    .search-wrapper {
        flex-direction: column; 
        align-items: stretch;  
    }
    .search-btn {
         width: 90%; 
        margin-top: 10px; 
    }
    .search-bar {
        width: 90% !important;
    }
    .doctor-actions button {
        font-size: 12px;
        width: 200px !important;
    }
    .doctor-lang {
        text-align: center !important;
    }
    .doctor-actions {
          gap: 10px;           
          justify-content: center;
          align-items: center;   
      }
      .doctor-actions button {
            padding: 14px 4px !important;
        }
      .doctor-actions button {
          width: 100%;           
          max-width: 350px;     
      }
      .doctor-left {
          min-width: auto;
      }
      .doctor-img {
          width: 120px;
          height: 120px;
          margin: 0 auto;
      }
      .banner {
          padding: 50px 20px 80px 20px;
      }
      .doctor-card {
          width: 90%;
      }
        #find-doctors .city-list {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px;
    }

}
@media (max-width: 325px) {
    .doctor-card-inner {
          flex-direction: column;
          text-align: center;
    }
    .doctor-langs{
        text-align: center;
    }
    .doctor-actions {
          justify-content: center;
    }
    .top-doctors .doctor-actions button {
        width: 270px !important;
        border-radius: 10px;
    }
}
@media (max-width: 550px) {
    .mobile-center {
        text-align: center !important;
        justify-content: center !important;
        display: flex;
    }
    .doctor-card-inner {
          flex-direction: column;
          text-align: center;
    }
    .doctor-actions {
          flex-direction: column; 
          gap: 10px;           
          justify-content: center;
          align-items: center;   
    } 
    .doctor-card {

        width: 95% !important;
    }
    .search-input {
        font-size: 11px !important;
      }
    #qa-disp .faq-title {
    font-size: 23px !important;}

    .coll-btn {

        font-size: 14px;
    }
    .doctor-actions button {

        width: 300px !important;
    }
    .exp-badge {

        left: 110px !important;
    }
      .doctor-img {
          width: 130px;
          height: 150px;
          margin: 0 auto;
      }

      .doctor-img {
          width: 90%;
          height: 10%;
          margin: 0 auto;
      }
      .banner {
              padding: 45px 20px 45px 20px !important;
      }
      .banner-content h1 {
          font-size: 25px !important; 
      }
      .search {
          text-align: center;
          margin-top: 25px !important;
      }
      .search p{font-size: 16px;padding: 1%;}
      .banner-content p {
          font-size: 14px;
      }
      .highlight {
          font-size: 16px !important;
          line-height: 23px;
      }
      .exp-badge {
          bottom: 10px;
          left: 60px;
          font-size: 15px;
          padding: 4px 10px;
          border-radius: 26px;
      }
      .doctor-name {
          font-size: 22px;
          margin: 16px 0;
      }
      .doctor-speciality {
          font-weight: 700;
          font-size: 22px;
      }
      .dr-qual{
          font-size: 17px
      }
      p, ul li {
          font-size: 17px;
      }
      .doctor-actions button {
          padding: 14px 16px;
      }
      .top-sub {
          font-size: 16px !important;
      }
      .specialties-header h1 {
          font-size: 25px !important;
          margin-bottom: 22px;
      }
      .doctor-actions button {
          padding: 14px 8px;
      }
      .top-doctors .doctor-actions button {
          width: 289px !important;
          border-radius: 10px;
      }
      .dr-qual {
          font-size: 14px !important;
      }
      #spec-dr-display {
              padding-top: 1%;
      }
      .doctor-lang {
          font-size: 14px;
      }
      .specialties-header h3 {
          font-size: 16px !important;
          padding: 2%;
          color: #555;
          line-height: 25px;
      }
      .carousel-item {
          flex: 0 0 100%;
      }
      .top-doctors .doctor-name {
          font-size: 20px;
      }
      .top-doctors .doctor-speciality {
          font-size: 15px !important;
      }
      .top-doctors  .exp-badge {
          bottom: 10px;
          left: 110px !important;
      }
      .steps {
          gap: 13px !important;
      }
      .collapsible-box {
          width: 96% !important;
      }
      .dr-qual {
      line-height: 1.9;
      }
      .col-lg-12 {
          width: 99% !important;
      }
      #faqSection .panel-title a {
          font-size: 15px !important;
      }
      .faq-pad {
          padding: 50px 0% !important;
      }
      .panel-body p{
          font-size: 12px;
      }
      #qa-disp .faq-title {
    font-size: 21px;}
                #find-doctors .city-list {
        grid-template-columns: repeat(1, 1fr) !important;
        gap: 15px;
    }

    .coll-block {
    width: 95% !important;
    }
        #qa-disp {

        padding: 5%;
    }
    .dr-spl-qa-disp {
        margin-bottom: 9%;
    }
    #qa-disp .dr-spl-qa-disp p {
        margin-bottom: 4%;
    }
    ol li, p, ul li {
        font-size: 15px;
        margin-bottom: 5%;
    }
}
@media (max-width: 376px) {
    .banner-content h1 {
      font-size: 30px !important;
    }
    .banner-content p {
    font-size: 17px !important;
    }
    .banner {
    padding: 80px 20px 60px 20px !important;
    }
    .search-bar {
    width: 95% !important;
    }
    .search-btn {
      width: 95% !important;
      border-radius: 6px !important;
    }



    #qa-disp .faq-title {
      font-size: 21px !important;
      margin: 1% !important;
      text-align: center !important;
    }
    #qa-disp {
    /* font-size: 14px; */
    padding-top: 15% !important;
    }

    #qa-disp .dr-spl-qa-disp p {
    margin-bottom: 8% !important;
}
.doctor-card {

    width: 92% !important;
}
.exp-badge {
    left: 70px !important;
}
.exp-badges {
    left: 100px !important;
}
}

  /* Banner   */
    .banner {
      width: 100%;
      margin-top: 50px;
      padding: 80px 20px 80px 20px;
      background: linear-gradient(to bottom right, rgba(0, 180, 216, 0.10),#ffffff, rgba(245, 130, 31, 0.10));
      text-align: center;
      border-radius: 0 0;
    }

    .banner-content h1 {
      font-size: 36px;
      font-weight: 700;
      color: #1f1f1f;
      margin-bottom: 20px;
    }

    .banner-content p {
      font-size: 18px;
      color: #4a4a4a;
      margin-bottom: 15px;
    }

    .highlight {
      font-size: 18px;
      font-weight: 600;
      color: #ff7a00;
    }
  /* Banner End */
  /* Search Bar */

    .search-btn {
        background: #ff7a00;
        color: white;
        padding: 12px 22px;
        border-radius: 12px;
        border: none;
        font-size: 16px;
        font-weight: 600;
        cursor: pointer;
        margin-bottom: 10px;
        flex-shrink: 0;
    }
    .search-btn:hover {
        background: #e96c00;
    }
    .search {
        text-align: center;
        margin-top: 40px;
    }
    .search p {
        color: #555;
        margin-bottom: 15px;
    }
    .search-wrapper {
        display: flex;
        justify-content: center;
        align-items: center;
        margin-top: 20px;
        gap: 10px; /* space between input and button */
        flex-wrap: wrap; /* allow wrapping on small screens */
    }

    .search-bar {
        max-width: 700px;
        width: 100%;
        display: flex;
        align-items: center;
        background: #fff;
        border: 1px solid #dcdcdc;
        padding: 5px 10px;
        border-radius: 14px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    }
    .search-icon {
        font-size: 20px;
        margin-right: 10px;
        color: #888;
    }

    .search-input {
        flex: 1;
        padding: 12px;
        border: none;
        outline: none;
        font-size: 16px;
    }

    .search-btn:hover {
        background: #e96c00;
    }

  /* Searchbar End */

  /* Top doctors */

    .top-doctors {
        margin: 40px 0;
        text-align: center;
    }
    .top-title {
        font-size: 28px;
        font-weight: 700;
        margin-bottom: 15px;
        color: #1f2937;
    }
    .top-sub{
    font-size: 18px;
    margin-bottom: 30px;
    color: #6a6b6dff;
    }
    .carousel-btns {
        margin-bottom: 40px;
        display: flex;
        justify-content: center;
        gap: 12px;
    }
    .carousel-btn {
        background-color: #fff;         
        color: #00a8cc;                
        border: 1px solid #00a8cc;       
        border-radius: 50%;             
        width: 40px;
        height: 40px;
        font-size: 24px;                
        cursor: pointer;
        display: flex;
        justify-content: center;
        align-items: center;
        transition: 0.3s;
    }
    .carousel-btn:hover {
        background-color: #00a8cc;     
        color: #fff;                    
    }
    .top-carousel {
        display: flex;
        overflow-x: auto;
        gap: 20px;
        scroll-behavior: smooth;
    }
    .top-carousel::-webkit-scrollbar {
        display: none; 
    }
    .carousel-item {
        flex: 0 0 calc(50% - 20px);
        scroll-snap-align: start;
            height: auto;
    min-height: 290px;
    }
    .top-doctors .doctor-card {
        width: 78%;
        padding: 12px;
        border-radius: 10px;
        box-shadow: 0 1px 5px rgba(0,0,0,0.05);
    }
    .topdoc-profile-btn{
        width: 125px !important;
    }

    .top-doctors .doctor-actions button {
        padding: 14px 30px;
        font-size: 16px;
        width: 200px;
        border-radius: 10px;
    }
    .top-doctors .doctor-right {
    flex: 1;
    text-align: left;
    }
    .top-doctors .doctor-card-inner { gap: 15px; }

    .top-doctors .doctor-imgs { width: 145px; height: 160px; border-radius: 10px; object-fit: cover; }
    .top-doctors .exp-badge { font-size: 12px; padding: 3px 6px; }
    .top-doctors .top-badge { font-size: 10px; padding: 3px 6px; }
    .top-doctors .doctor-name { font-size: 18px; color: #111827;}
    .top-doctors .doctor-lang, .top-doctors .dr-qual { font-size: 12px; }
    .top-doctors .doctor-speciality { font-size: 14px; }
    .top-doctors .doctor-fee { font-size: 18px; }
    .top-doctors .doctor-actions button { padding: 14px 12px; font-size: 13px; }


    .topdoc-profile-btn{
    background-color: #fff;
    color: #00a8cc;
    border: 1px solid #00a8cc;
    font-weight: 900;

    }

    .topdoc-profile-btn:hover{
    background-color: #00a8cc;
    color: #fff;
    font-weight: 900;
    }

  /* HOW IT WORK */

    .how-it-works { 
      text-align: center;
      padding: 50px 5%;
      background: linear-gradient(to left top, #fff4e4 0%, #ffffff 50%, #00a7cc33 100%);
    }
    .how-it-works h2 {
      font-size: 2.25rem;
      font-weight: 700;
      color: #0a2540;
      margin-bottom: 10px;
    }
    .how-it-works .subtitle {
      color: #64748b;
      font-size: 1.125rem;
      margin-bottom: 50px;
    }
    .steps {
      display: flex;
      justify-content: center;
      gap: 40px;
      flex-wrap: wrap;
    }
    .step-card {
        background: #ffffff;
        border-radius: 10px;
        border: 0.10px solid #f1f1f1;
        width: 270px;
        padding: 18px 1px 10px;
        transition: all 0.3s ease;
    }

    .icon-circle.orange {
      background-color:#ffeddc;
      color: #f67b1e;
    }
    .step-card h3 {
      font-size: 1rem;
      font-weight: 700;
      color: #0a2540;
      margin-bottom: 2px;
    }
    .step-card p {
      color: #64748b;
      font-size: 0.9rem;
      line-height: 1.5;
    }

  /* Doctors */

    .profile-btn {
    padding: 14px 30px; 
    border: 2px solid #00a8cc;
    background: #fff;
    color: #00a8cc;
    border-radius: 10px;  
    font-weight: 600;
    font-size: 16px;    
    cursor: pointer;
    width: 180px;        
    }
    .profile-btn:hover {
    background: #00a8cc;
    color: #fff;
    }
    .doctor-actions button {
    padding: 14px 30px;
    font-size: 16px;
    width: 385px;
    border-radius: 10px;
    }
    .doctor-card {
    background: #fff;
    border: 1px solid #e7e7e7;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    width: 70%;
    margin-left: auto;
    margin-right: auto;
    }
    .doctor-card-inner {
    display: flex;
    gap: 20px;
    }
    .doctor-left {
    min-width: 140px;
    }
    .doctor-img-box {
    position: relative;
    }
    #spec-dr-display img.doctor-img {
        width: 180px;
        height: 200px;
        object-fit: cover; 
        border-radius: 8px;
    }
    .doctor-img {
    width: 200px;
    height: 240px;
    border-radius: 12px;
    object-fit: cover;
    }
    .doctor-imgs{
        width: 140px;
        height: 140px;
        border-radius: 12px;
        object-fit: cover;
    }
    .exp-badge {
        position: absolute;
        bottom: 8px;
        left: 10px;
        background: #00a8cc;
        color: #fff;
        font-size: 12px;
        font-weight: 500;
        padding: 5px 8px;
        border-radius: 26px;
    }
    .doctor-right {
    flex: 1;
    }
    .top-badge {
    background: #ffedd5;
    color: #ea580c;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 8px;
    display: inline-block;
    }
    .doctor-name {
    font-size: 20px;
    font-weight: 700;
    margin: 6px 0;
    }
    .doctor-speciality,
    .doctor-degree,
    .doctor-lang {
    margin: 2px 0;
    color: #555;
    }
    .doctor-fee {
    font-size: 22px;
    font-weight: 700;
    margin-top: 8px;
    }
    .doctor-actions {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 12px;
    }
    .doctor-speciality {
        font-weight: 700;
        font-size: 16px;
        margin: 4px 0;
        color: #333;
    }
    .dr-qual {
        font-weight: 500;
        color: #555;
        margin: 4px 0;
        line-height: 1.4;
    }
    .doctor-fee {
        font-size: 24px;
        font-weight: 800;  
        margin-top: 10px;
        color: #000 !important;
    }
    .panel-title a {
        position: relative;
        display: flex;           
        justify-content: space-between;
        align-items: center;      
        text-decoration: none;
        color: #333;
        font-weight: 600;      
    }
    .panel-title a::after {
        content: "";
        display: inline-block;
        width: 8px;
        float: right;
        height: 8px;
        border-left: 2px solid #333;
        border-bottom: 2px solid #333;
        transform: rotate(-45deg);  
        transition: transform 0.3s ease;
    }
    .panel-title a:not(.collapsed)::after {
        transform: rotate(136deg); 
    }
    p {
        margin: 2% 0%;
    }
    .coll-btn .collapsible-wrapper {
        width: 100%;
        margin: 0 auto;
    }
    .specialties-header h1 {
        font-size: 32px;
        margin-bottom: 10px;
        font-weight: 700;
    }
    .specialties-header h3 {
        font-size: 18px;
        color: #555;
    }
    .coll-btn .content {
        width: 100%;
        max-height: 0;
        overflow: hidden;
        display: none;
        transition: max-height 0.3s ease-out;
    }
    .coll-btn .coll-content-new .doctor-card {
        width: 100%;
        margin-bottom: 10px;
    }
    .coll-content-new .doctor-card {
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}
.coll-content-new .doctor-img {
    width: 173px !important;
    height: 200px !important;
    border-radius: 12px;
    object-fit: cover;
}



    .coll-block {
        width: 70%;
        margin-top: 30px;
        margin: 0 auto;
        border: 2px solid #ffd1a2fc;
        border-radius: 12px;
        overflow: hidden;
        transition: 0.3s;
    }
    .coll-btn .collapsible {
        width: 97%;
        border: none;    
        background-color: white;
        padding: 23px;
        font-size: 17px;
        cursor: pointer;
        box-shadow: none;
        color: #3d3c3c;
        font-weight: 700;
        
    }
    .coll-btn .content {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-out;
        padding: 0 15px;  
    }
    .browse-all-btn-wrapper {
        text-align: center;
        margin-top: 30px;
    }
    .browse-all-btn {
        display: inline-block;
        padding: 12px 25px;
        background-color: #ffffff; 
        color: #00a8cc;         
        font-size: 16px;
        font-weight: 600;
        text-decoration: none;
        border-radius: 8px;
        border: 2px solid #00a8cc;
        transition: 0.3s;
    }
    .browse-all-btn:hover {
        background-color: #00a8cc; 
        color: #ffffff;          
        border-color: #00a8cc;     
    }
    .count-right {
        float: right;
        margin-right: 20px;
        font-weight: normal;
        color: #636363;
        font-size: 13px;
    }
    .coll-btn .collapsible {
        display: flex;
        justify-content: space-between;

        position: relative;
    }
    .coll-btn .collapsible::after {
        border-style: solid;
        border-width: 0 2px 2px 0;
        content: "";
        padding: 3px;
        transform: translateY(-50%) rotate(45deg);
        color: rgba(0, 0, 0, .54);
        position: absolute;
        right: 2px;
    }
    .sel-dr-btn{
        background-color: #00a8cc;
        color: #fff;
        border: 1px solid #00a8cc;
        font-weight: 900;
    }
    .text-docgenie-blue {
        color: #00a8cc; 
    }
    .text-docgenie-orange{
    color: #f5821f;
    }
    header{
        text-align:center; 
        margin-top:60px; 
        margin-bottom:60px;
    }

  @media(max-width:768px){
      .carousel-item { flex: 0 0 100%; }
      .top-doctors .doctor-imgs { width: 150px !important; height: 150px !important; }
  }
      .search p {
        color: #555;
        margin-bottom: 1px !important;
    }

    #qa-disp .faq-title {
        font-size: 29px;
        color: #1f2d37;
        font-weight: 500;
    }

    .container-fluid {
        padding-right: 1px !important; 
        padding-left: 1px !important;
    }
    #faqSection .panel-title a {
        font-size: 18px !important;
        color: #272626;
        opacity: 1;
    }
    #faqSection .panel-body {
        padding: 0 0 15px 15px;
        font-size: 18px;
    }


/* Arrow indicator */
.coll-btn::after {
    content: "";
    border: solid #636363;
    border-width: 0 2px 2px 0; /* keep the thickness */
    display: inline-block;
    padding: 3px; /* smaller arrow */
    transform: rotate(45deg);
    transition: transform 0.3s ease;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

/* Rotate arrow when active */
.coll-btn.active::after {
    transform: translateY(-50%) rotate(-135deg);
}

.coll-content-new {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    padding: 0 15px;
}
.coll-block {
    margin-bottom: 20px !important; /* space between each specialty block */
}

.top-carousel {
    display: flex;
}

/* Ensure all items match tallest card */
.carousel-item {
    display: flex;
    height: 100%;
}

.top-carousel {
    display: flex;
    overflow-x: scroll;
    scroll-behavior: smooth;
    gap: 20px;
    scroll-snap-type: x mandatory;
}

.top-carousel {
    display: flex;
    overflow: hidden;
}

/* Hide mobile buttons on desktop */
.carousel-btns.mobile {
    display: none;
}

/* Hide desktop buttons on mobile */
@media (max-width: 768px) {
    .carousel-btns.desktop {
        display: none;
    }

    .carousel-btns.mobile {
        display: flex;           /* show mobile buttons */
        justify-content: center; /* center below carousel */
        gap: 10px;
        margin-top: 15px;
    }
}
@media (max-width: 1025px) {

    .top-doctors .doctor-actions button {
    width: 160px;
    }
    .top-doctors .doctor-imgs {
    width: 120px;
    height: 140px;
}


.coll-block {
    width: 86%;
}
.doctor-actions button {
font-size: 14px;
    width: 300px;
}

.coll-content-new .doctor-img {
    width: 160px !important;
    height: 180px !important;
}

.dr-qual {
    font-size: 13px;
}
#spec-dr-display img.doctor-img {
    width: 150px;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
}
.doctor-card {

    width: 79%;

}

}
#qa-disp {
padding-bottom: 0% !important;
}