:root{
    --qa-primary: #e21818;
}
.d-flex{
    display: flex;
}

.align-items-center{
    align-items: center;
}
.text-center{
    text-align: center;
}
.text-decoration-none{
    text-decoration: none;
}
/* Question Form */
.qa-container {
    width: 100%;
    max-width: 1280px;
    margin: 40px auto;
    padding: 0 15px;
    box-sizing: border-box;
}

.qa-text-danger {
    color: red;
}

.qa-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.qa-sidebar-left {
    flex: 0 0 15%;
}

.qa-main-form {
    flex: 1 1 57%;
    min-width: 0;
}

.qa-sidebar-right {
    flex: 0 0 23%;
}

/* Responsive */

.qa-form-wrapper {
    background: #fff;
    border-radius: 15px;
    margin-bottom: 20px;
    font-size: 16px;
    box-sizing: border-box;
    font-weight: 400;
}

.qa-form-wrapper h3 {
    text-transform: uppercase;
    font-weight: 600;
    font-size: 26px;
}

.qa-form .qa-textarea,
.qa-form .qa-input {
    width: 100%;
    padding: 8px 10px;
    outline: none;
    background: #f5f5f5;
    border: none;
    border-radius: 10px;
    margin-bottom: 15px;
    box-sizing: border-box;
}

.qa-form .qa-input {
    height: 40px;
}

.qa-form .btn-group {
    text-align: center;
}

.qa-form .qa-submit {
    background: #ff6105;
    color: #fff;
    border: none;
    padding: 15px 30px;
    border-radius: 5px;
    text-transform: uppercase;
    font-weight: bold;
    cursor: pointer;
}

.qa-form .qa-submit:hover {
    background: #ff8161;
}

/* Question Category sidebar */
.nex2tek-left-widget {
    overflow: hidden;
    position: sticky;
    top: 9rem;
    margin-bottom: 15px;
}

.qa-category-list .qa-category-title {
    font-weight: 600;
    font-size: 18px;
    padding: 0 10px 10px;
    color: var(--qa-primary);
    border-bottom: 1px solid #ccc;
}

.qa-category-list ul {
    list-style: none;
    margin: 0;
    padding: 5px;
}

.qa-category-list ul li {
    margin-bottom: 5px;
}

.qa-category-list ul li a {
    display: block;
    font-size: 16px;
    color: #222;
    padding: 5px 6px;
    transition: all .25s linear;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 400;
}


.qa-category-list ul li:hover{
     background-color: #ddd;
    border-radius: 5px;
}

.qa-category-list ul li.qa-active {
    background-color: var(--qa-primary);
    border-radius: 5px;
}

.qa-category-list ul li.qa-active a{
    color: #fff;
}

/* Question Statistic */
.qa-most-viewed {
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, .2509803922);
    overflow: hidden;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #eee;
}

.qa-most-viewed .qa-most-viewed-title {
    font-weight: 600;
    font-size: 18px;
    padding: 0 10px 10px;
    color: var(--qa-primary);
    border-bottom: 1px solid #ccc;
    text-align: center;
    margin: 0;
}

.qa-most-viewed .qa-most-viewed-list {
    list-style: none;
    margin: 0;
    padding: 5px;
}

.qa-most-viewed .qa-most-viewed-list li {
    margin-bottom: 7px;
    padding-bottom: 7px;
    display: block;
    font-size: 16px;
    transition: all .25s linear;
    font-weight: 400;
    color: #222!important;
}

.qa-most-viewed .qa-most-viewed-list li a {
    text-decoration: none;
    color: #222!important;
}

.qa-most-viewed .qa-view-count {
    color: #0b48bd;
    font-size: 12px;
}

.qa-most-viewed .qa-most-viewed-list > li .qa-most-viewed-item:hover,
.qa-most-viewed .qa-most-viewed-list > li .qa-most-viewed-item:hover a {
    color: #0b48bd!important;
    cursor: pointer;
}

.qa-most-viewed .qa-most-viewed-list li:not(:last-child) {
    border-bottom: 1px solid #ccc;
}

/* Doctor statistic */
.qa-doctor-grid-wrapper {
    margin-bottom: 20px;
    padding: 15px;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
    border-radius: 15px;
}

.qa-doctor-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.qa-doctor-card {
    display: flex;
    position: relative;
    flex-direction: column;
    width: calc(25% - 10px);
    background-color: #f2f2f2;
    border-radius: 15px;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    padding-bottom: 35px;
    animation: fadeop .25s ease-in-out;
    text-align: center;
}

.qa-doctor-card a {
    text-decoration: none;
}

.qa-doctor-avatar img {
    margin: 10px auto;
    width: 100px;
    height: 100px;
    overflow: hidden;
    border-radius: 100%;
    display: block;
    object-fit: cover;
    object-position: top;
}

.qa-doctor-title {
    font-size: 13px;
    color: #333;
    font-weight: 600;
}

.qa-doctor-name {
    transition: .3s;
    color: #0046c0;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 16px;
    padding: 0 10px;
    margin: 0;
}

.qa-doctor-desc {
    font-size: 12px;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.5;
    padding: 0 10px;
}

.qa-doctor-desc p {
    line-height: 1.5!important;
}

.qa-doctor-button {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    padding: 0 0 10px;
}

.qa-doctor-button .qa-doctor-cta {
    display: inline-block;
    background-color: #e21818;
    color: #fff;
    padding: 5px 15px;
    border-radius: 55px;
    font-weight: 500;
    font-size: 14px;
    transition: all .25s linear;
}

.qa-doctor-button .qa-doctor-cta:hover {
    background: #ff8161;
}

.qa-doctor-hidden {
    display: none;
}

.qa-doctor-visible {
    display: block;
}

.qa-doctor-toggle {
    text-align: center;
}

.qa-doctor-toggle button {
    background: #0046c0;
    color: #fff;
    padding: 8px 20px;
    border: none;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
}

.qa-doctor-toggle button:hover {
    background: #0056d8;
}
/* Question list */
.qa-list{
    margin:0;
    border-radius: 15px;
    padding: 15px;
}
.qa-list h3{
    text-transform: capitalize;
    font-weight: 600;
    font-size: 26px;
    margin-bottom: 10px;
    transition: all .3s linear;
}
.qa-list h3 a{
    text-decoration: none;
}
.qa-list h3 a:hover{
    color: var(--qa-primary);
}
.qa-avatar{
    border-radius: 50%;
    margin-right: 5px;
}
.qa-item{
    border-bottom: 1px solid #ccc;
    padding-bottom: 10px;
}
.qa-item:last-child{
    border: none;
}
.qa-name{
    font-size: 14px;
    color: #222;
}


/* Pagination */
.qa-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  flex-wrap: wrap;
  font-family: system-ui, sans-serif;
}

.qa-pagination .page-numbers {
  display: inline-block;
  padding: 8px 14px;
  font-size: 14px;
  color: #333;
  border: 1px solid #ddd;
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.2s ease-in-out;
}

.qa-pagination .page-numbers:hover {
  background-color: #f0f0f0;
  border-color: #bbb;
  color: #000;
}

.qa-pagination .current {
  background-color:var(--qa-primary);
  border-color: var(--qa-primary);
  color: #fff;
  font-weight: bold;
  cursor: default;
}

.qa-pagination .next {
  font-weight: bold;
}

.qa-cat-description p span{
    font-weight: bold;
    color: var(--qa-primary);
    font-size: 40px;
}   

.qa-alert{
    padding: 10px;
    border-radius: 10px;
}
.qa-alert-success{
    background-color: #d3f8de;
    color: green;
}
.qa-alert-danger{
    background-color: #f8d7da;
    color: red;
}
/* Doctor details */
.qa-doctor-details-card {
    display: flex;
    background: #f4f4f4;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
}
.qa-doctor-details-image{
    width: 300px;
}

.qa-doctor-details-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}
.qa-doctor-title {
    text-transform: uppercase;
    font-size: 15px;
}

.qa-doctor-details-info{
    padding: 20px 30px;
}
.qa-doctor-details-info h2 {
    margin: 0.5rem 0;
    text-transform: uppercase;
    color: #e21818;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #000;
    width: -moz-fit-content;
    width: fit-content;
}
.qa-doctor-details-desc p {
    margin: 0.3rem 0;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.5;
    text-align: left;
}

.qa-breadcrumb {
    font-size: 14px;
    margin-bottom: 1rem;
    color: var(--qa-primary);
    font-weight: 400;
}
.qa-breadcrumb a {
    color: #333;
    text-decoration: none;
}
.qa-breadcrumb span{
    font-weight: bold;
}
.qa-doctor-details-content{
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
    padding: 20px;
    font-size: 16px;
}

/* Start for send question Icon */
.send-question-icon {
    position: fixed;
    border-radius: 100%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    top: 50%;
    right: 30px;
    transform: translateY(-50%);
    background: #e21818;
    justify-content: center;
    box-shadow: 0px 0px 5px 0px rgba(196,194,194,0.75);
    -webkit-box-shadow: 0px 0px 5px 0px rgba(196,194,194,0.75);
    -moz-box-shadow: 0px 0px 5px 0px rgba(196,194,194,0.75);
    display: none;
}

.send-question-icon i {
    color: white;
}
/* End for send question Icon  */

/* Start for send question button */
.send-question-button {
  text-align: center;
  margin-bottom: 24px;
}

.send-question-button .btn {
  background: #e21818;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  padding: 14px 38px;
  border: none;
  border-radius: 30px;
  box-shadow: 0 4px 18px rgba(11, 72, 189, 0.10);
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-block;
  text-decoration: none;
}

.send-question-button .btn:hover,
.send-question-button .btn:focus {
  background: #fb5c00;
  color: #fff;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 28px rgba(11, 72, 189, 0.18);
  text-decoration: none;
}

/* End for send question button */

/* Start for right sidebar */
.qa-most-viewed li:hover {
    border-bottom: 2px solid var(--qa-primary) !important;
}

.question-icon-wrapper {
    display: inline-block;
    font-weight: 500;
    border: 1px solid #dfdfdf;
    border-radius: 15px;
    padding: 4px 8px;
    font-size: 12px;
    transition: all 0.25s linear;
    margin-top: 10px;
    text-decoration: none;
}

.question-icon-wrapper .question-icon {
    display: inline-block;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    width: 15px;
    height: 15px;
    margin-bottom: -2px;
    margin-right: 5px;
    transition: all 0.25s linear;
    font-size: 14px;
}

.question-icon-wrapper .eye-icon {
    background-image: url(../assets/images/icon-eye.svg);
}

.question-icon-wrapper .comment-icon {
    background-image: url(../assets/images/icon-comment.svg);
}

.qa-main-form .qa-lists .qa-list {
    padding: 0;
}

.qa-main-form .qa-lists .qa-list .qa-item {
    box-shadow: 0 0 10px rgb(0 0 0 / .21);
    background-color: #fff;
    margin: 15px 0;
    padding: 20px 30px;
    border-radius: 20px;
}

.qa-main-form .qa-lists .qa-list h3 {
    margin-top: 0px;
}
.qa-search{
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
    padding: 20px;
    border-radius: 20px;
    text-align: center;
}
.qa-search .qa-search-title{
    font-size: 30px;
    font-weight: 600;
    color: var(--qa-primary);
    margin-bottom: 15px;
    text-transform: uppercase;
}
.qa-search .qa-search-sub{
    font-size: 18px;
    margin-bottom: 15px;
}
.qa-search .search-form{
    position: relative;
}

.qa-search #qa-search-form{
    width: 100%;
}
#qa-search-form .input-group{
    position: relative;
    display: flex;
    align-items: stretch;
    width: 100%;
    gap: 10px;
}

.qa-search #qa-search-form input{
    width: calc(100% - 60px);
    padding: 12px 20px;
    margin: 8px 0;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
    font-size: 16px;  
    height: 44.5px;  
}

.qa-search #qa-search-form button{
    padding: 12px 15px;
    margin: 8px 0;
    box-sizing: border-box;
    border: 1px solid var(--qa-primary);
    border-radius: 4px;
    background-color: var(--qa-primary);
    font-size: 16px;
    cursor: pointer;
    color:white;
    height: 44.5px;    
    line-height: normal!important;
}
.qa-search-result span{
    color: var(--qa-primary);
    font-weight: 600;
    font-size: 40px;
}


/* Start Top tags */
.qa-topics {
    background:#f5f5f5;
    width: 100%;
    box-sizing: border-box;
    min-width: 0;
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 15px;
}

.qa-topics__title {
    text-align: center;
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: 600;
  }
  
  .qa-topics__scroller {
    display:flex;
    gap: 5px;
    overflow-x:auto;
    overflow-y:hidden;
    padding-bottom:8px;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:none;
  }
  .qa-topics__scroller::-webkit-scrollbar {
    display:none;
  }
  .qa-topics__scroller span {
    font-size: 14px!important;
  }
  
  .qa-topics__chip {
    flex:0 0 auto;
    white-space:nowrap;
    padding:8px 16px;
    border:1px solid #ddd;
    border-radius: 8px;
    background:#fff;
    text-decoration:none;
    color:#333;
    font:500 14px/1 system-ui;
  }

  .qa-topics__chip:hover {
    color: #fff;
    background-color: var(--qa-primary);
    border: 1px solid var(--qa-primary);
  }
    
/* End Top tags */

/* Start Most Rated doctor */
.qa-most-rated-doctor {
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, .2509803922);
    overflow: hidden;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #eee;
}

.qa-most-rated-doctor a {
    text-decoration: none!important;
}

.qa-most-rated-doctor__title {
    text-align: center;
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 10px;
}

.qa-most-rated-doctor__profile {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 90%;
    margin: auto;
}

.qa-most-rated-doctor__avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
}

.qa-most-rated-doctor__info {
    display: flex;
    flex-direction: column;
}

.qa-most-rated-doctor__degree {
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

.qa-most-rated-doctor__name {
    font-weight: 600;
    color: var(--qa-primary);
    text-transform: uppercase;
    transition: .3s;
    font-size: 15px;
}

.qa-most-rated-doctor__divider {
    border: none;
    border-top: 1px solid #ccc;
    margin: 12px 0;
}

.qa-most-rated-doctor__speciality {
    text-align: center;
    font-size: 14px;
}
#nex2tek-search-results ul{
    list-style-type: none;
    padding: 0;
    margin: 0;
    text-align: left;
    background-color: #f9f9f9;
    border-radius: 5px;
    padding: 15px 15px 5px 15px;
    box-shadow: 0 2px 3px 0 #a1a1a1;
}
#nex2tek-search-results ul li{
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #c9c6c6;
    padding: 10px 0;
}
#nex2tek-search-results ul li:last-child{
    border-bottom: 0;
}
#nex2tek-search-results ul a{
    text-decoration: none;
    color: #333;
    position: relative;
    font-weight: bold;
    font-size: 15px;
    transition: all .3s ease-in-out;
}
#nex2tek-search-results ul a:hover{
    color: var(--qa-primary);
}
#nex2tek-search-results ul span{
    width: 17px;
    height: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--qa-primary);
    color: #fff;
    border-radius: 100%;
    font-size: 13px;
    margin-right: 5px;
}

span.qa_phone-error {
    font-size: 12px;
    margin-bottom: 10px;
    display: none;
    color: red;
}
.qa-form .iti.iti--allow-dropdown.iti--show-flags.iti--inline-dropdown{
    width: 100%;
    margin-bottom: 15px!important;
}
.qa-form .iti__search-input{
    padding: 10px;
}
/* End Most Rated doctor */  

@media (max-width: 992px) {
    .qa-sidebar-left,
    .qa-sidebar-right,
    .qa-main-form {
        flex: 0 0 100%;
        order: unset;
    }
    .qa-sidebar-left {
        order: 3;
    }
    .send-question-icon{
        right: 10px;
    }
}

@media (max-width: 767px) {
    .qa-doctor-details-image {
        width: 100%;
    }
    .qa-doctor-card {
        width: calc(50% - 10px);
    }
}
@media (max-width: 768px) {
    .qa-doctor-details-card {
        flex-direction: column;
    }
    .qa-doctor-details-info {
        width: auto;
    }
    .qa-doctor-details-info{
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .qa-doctor-details-info h2 {
        width: 100%;
    }

    .qa-most-rated-doctor {
        padding: 12px;
        max-width: 100%;
    }
    
    .qa-most-rated-doctor__title {
        font-size: 16px;
        text-align: center;
    }

    .qa-most-rated-doctor__profile {
        flex-direction: column;
        text-align: center;
    }

    .qa-most-rated-doctor__avatar {
        width: 56px;
        height: 56px;
    }

    .qa-most-rated-doctor__degree {
        font-size: 13px;
    }

    .qa-most-rated-doctor__name {
        font-size: 15px;
    }

    .qa-most-rated-doctor__speciality {
        font-size: 13px;
    }
}

