/* ==========================================================================
   Global Typography
   ========================================================================== */
html, body {
    height: 100%;
}
/* Global default font and background */
body {
    font-family: 'TT Hoves Pro', -apple-system, BlinkMacSystemFont,
    'Segoe UI', Roboto, Arial, sans-serif;
    font-weight: 400;
    background-color: #EDEDED;
}

/* ==========================================================================
   Font Weight Utilities
   Note: 300/400/500/600/700 are provided by Bootstrap (.fw-light, etc.)
   The following cover the weights Bootstrap does not include.
   ========================================================================== */

.fw-hairline   { font-weight: 100; }
.fw-thin       { font-weight: 200; }
.fw-extralight { font-weight: 250; }
.fw-extrabold  { font-weight: 800; }
.fw-black      { font-weight: 900; }

/* ==========================================================================
   Special Font Families
   ========================================================================== */

.font-outline {
    font-family: 'TT Hoves Pro Outline', sans-serif;
}

.font-variable {
    font-family: 'TT Hoves Pro Variable', sans-serif;
    font-weight: 450;
}

/* ==========================================================================
   Custom Colors
   ========================================================================== */
.f-color-white{ color: #fff !important;}
.f-color-dark-navy{ color: #0D3050 !important; }
.f-color-dark-gray{ color: #666564 !important; }

.bg-dark-navy { background-color: #0D3050 !important; }
.bg-light-cyan { background-color: #CCE3E6 !important; }
.bg-ivory { background-color: #F7F5F2 !important; }
.bg-off-white { background-color: #FDFCFA !important;}

.btn:hover,
.btn:focus,
.btn:active {
    background-image: none !important;
}

/* ==========================================================================
   Header
   ========================================================================== */

header {
    background-color: #FDFCFA;
    min-height: 83px;
    font-size: 14px;
}

header.sticky-top {
    position: sticky !important;
    top: 0 !important;
    z-index: 1030 !important;
    background-color: #FDFCFA;
}

header .navbar {
    min-height: 83px;
    padding-top: 0;
    padding-bottom: 0;
}

/* Prevent the brand from shrinking when space is tight */
header .navbar-brand {
    flex-shrink: 0;
}

/* Fixed logo size to avoid reflow jumps */
header .navbar-brand img {
    height: 40px;
    width: auto;
    display: block;
}
header .navbar .nav-link{
    padding: 10px 15px !important;
    min-width: 120px;
    text-align: center;
}

/* ==========================================================================
   Navbar CTA button
   ========================================================================== */

header .navbar-nav .btn {
    color: #fff;
    border-radius: 30px;
    height: 35px;
    line-height: 20px;
    font-size: 14px;
}

header .navbar-nav .btn:hover {
    background-color: #0D3050 !important;
}

.banner{
    background-image: url("../images/banner.png");
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
    min-height: 1150px;
}
.banner h1{
    font-size: 62px;
}
.banner p{
    font-size: 14px;
    max-width: 500px;
    margin: 0 auto;
}
.banner a{
    font-size: 12px;
    text-decoration: none;
}
.banner .btn{
    background-color: #fff;
    border-radius: 16px;
}
.anchor-navigation .label-item{
    border-radius: 20px;
    font-size: 12px;
    padding: 5px;
    display: block;
    line-height: 26px;
    text-decoration: none;
    max-width: 140px;
}
.diseases-subjects h2 {
    font-size: 36px;
    max-width:280px
}
.diseases-subjects .text {
    max-width: 420px;
    font-size: 14px;
}

.specialty-grid {
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.subject-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto; /* width based on content, no stretching */
    text-decoration: none;
    color: inherit;
    white-space: nowrap; /* keep the text on one line */
    border: 1px solid #CCCBCA;
    border-radius: 10px;
    padding: 8px;
}

.subject-item img {
        width: 40px;
        height: 40px;
        object-fit: contain;
        flex-shrink: 0;
    }

.subject-item span {
        font-size: 15px;
        line-height: 1.3;
    }
.diseases-subjects .find-a-specialist-btn {
    border-radius: 16px;
    font-size: 12px;
    line-height: 20px;
}
.main-content-mid img {
    width: 100%;
}
main .line,
main .step-last{
    border-bottom: 1px solid #B3B1B0;
    line-height: 45px;
    text-transform: uppercase;
    font-size: 14px;
}
main .step-last {
    border-bottom: none;
}
.your-prehabilitation h3{
    font-weight: normal;
    font-size: 34px;
}
.your-prehabilitation p{
    font-weight: normal;
    font-size: 14px;
    line-height: 26px;
}
.benefits h2 {
    font-size: 34px;
}

.benefits .item {
    min-height: 250px;
    border: 1px solid #CCCBCA;
    background-color: #fff;
    padding: 15px;
    border-radius: 10px;
}
.benefits .item .icon {
        background-color: #CCE3E6;
        border-radius: 5px;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
.benefits .sub-text {
    font-size: 12px;
}
.benefits .item .icon img {
    width: 24px;
    height: 24px;
}
.benefits .item .title {
    font-size: 14px;
}
.benefits .item p {
    font-size: 12px;
}
.specialists-tailored h2{
    font-size: 36px;
    font-weight: normal;
    max-width: 280px;
}
.specialists-tailored p{
    font-size: 12px;
}

/* ==========================================================================
   Expert Fan Carousel (True Arc & 5px Gap)
   ========================================================================== */

.expert-fan {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 530px;
    overflow: hidden;
}

.expert-fan-stage {
    position: relative;
    width: 100%;
    height: 450px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow: visible;
}

.expert-card {
    position: absolute;
    top: 0;
    left: 50%;
    width: 230px;
    min-height: 350px;
    margin-left: -160px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1),
    opacity 0.6s ease;
    transform-origin: center 1400px;
    will-change: transform, opacity;
    cursor: pointer;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.expert-img-wrap {
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 24px;
    width: 100px;
    height: 100px;
    flex-shrink: 0;
}

.expert-img-wrap img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    display: block;
}

.expert-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.expert-tag {
    background-color: #CCE3E6;
    color: #0C2E4C;
    font-size: 12px;
    padding: 4px 14px;
    border-radius: 20px;
    white-space: nowrap;
}

.expert-divider {
    border: 0;
    border-top: 1px solid #E5E5E5;
    margin: 0 0 10px 0;
}

.expert-name {
    font-family: 'TT Hoves Pro Trial', sans-serif;
    font-size: 28px;
    font-weight: 400;
    color: #0C2E4C;
    margin: 0 0 12px 0;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.expert-desc {
    font-size: 14px;
    color: #666564;
    line-height: 1.5;
    margin: 0;
}

.expert-fan-controls {
    display: flex;
    gap: 16px;
}

.fan-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid #CCCBCA;
    background: #fff;
    color: #0C2E4C;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.fan-btn:hover:not(:disabled) {
    background-color: #0C2E4C;
    color: #fff;
    border-color: #0C2E4C;
}

.fan-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    background: #fff;
    color: #0C2E4C;
    border-color: #CCCBCA;
}
.locate-your-nearest-source h2{
    font-size: 36px;
    max-width: 400px;
}
.locate-your-nearest-source p{
    font-size: 12px;
}
.locate-your-nearest-source input{
    border-radius: 20px;
    font-size: 12px;
    height: 38px;
    text-indent: 1em;
}
.locate-your-nearest-source button.nearest-source-btn{
    background-color: #0D3050;
    width: 100%;
    color: #fff;
    border-radius: 20px;
    font-size: 12px;
    height: 38px;
}
.locate-your-nearest-source button.nearest-source-btn img{
    width: 16px;
    margin-right: 10px;
}
.locate-your-nearest-source .states{
    display: inline-block;
    height: 30px;
}
.locate-your-nearest-source .states a{
    border-radius: 20px;
    border: 1px #0D3050 solid;
    text-decoration: none;
    font-size: 12px;
    color: #0D3050;
    padding: 5px 10px;
    margin: 0 10px;
}
.locate-your-nearest-source .states a.current{
    background-color: #0D3050;
    color: #fff;
}
.locate-your-nearest-source .map{
    border: 1px #EEEAE4 solid;
    border-radius: 20px;
    height: 420px;
}
.locate-your-nearest-source .map img{
    max-width: 100%;
}
.locate-your-nearest-source .locates{
    height: 420px;
    overflow-y: scroll;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: #144D80 #F7F5F2;
}

.locate-your-nearest-source .locates::-webkit-scrollbar {
    width: 3px;
}

.locate-your-nearest-source .locates::-webkit-scrollbar-track {
    background-color: #F7F5F2;
    border-radius: 3px;
}

.locate-your-nearest-source .locates::-webkit-scrollbar-thumb {
    background-color: #144D80;
    border-radius: 3px;
}


.locate-your-nearest-source .locates::-webkit-scrollbar-thumb:hover {
    background-color: #0C2E4C;
}
.locate-your-nearest-source .locates .locate{
    border-top: 1px solid #B3B1B0;
}
.locate-your-nearest-source .locates .locate .name{
    display: flex;
    align-items: flex-start;
    gap: 8px;
}
.locate-your-nearest-source .locates .locate .name .info {
    display: flex;
    flex-direction: column;
}
.locate-your-nearest-source .locates .locate .name .title {
    color: #0D3050;
    font-size: 14px;
}
.locate-your-nearest-source .locates .locate .name .category {
    font-size: 12px;
    color: #666564;
    margin-top: 4px;
}

.locate-your-nearest-source .locates .locate .name .icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('../images/map-pin.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}
.locate-your-nearest-source .locates .locate.current .name .icon{
    background-image: url('../images/map-pin-active.svg');
}

.locate-your-nearest-source .locates .locate .address{
    font-size: 12px;
}
.locate-your-nearest-source .locates .locate a{
    font-size: 14px;
    color: #0C2E4C;
    text-decoration: none;
}
.how-you-can-be-seen .item{
    background-color: #fff;
    padding: 15px;
    border: 1px solid #CCCBCA;
    border-radius: 10px;
    color: #0C2E4C;
    min-height: 172px;
}
.how-you-can-be-seen .item .number{
    background-color: #CCE3E6;
    width: 40px;
    height: 40px;
    font-size: 14px;
    text-align: center;
    line-height: 40px;
    border-radius: 6px;
}
.how-you-can-be-seen .item .title{
    font-size: 16px;
}
.how-you-can-be-seen .item p{
    font-size: 12px;
    color: #666564;
}
.how-you-can-be-seen .accordion-button:not(.collapsed){
    background: #fff;
    box-shadow: none;
    color: #0D3050;
}
.how-you-can-be-seen .accordion-item{
    border: none;
    margin-bottom: 15px;
}
.how-you-can-be-seen .accordion-body
.how-you-can-be-seen .accordion-collapse
.how-you-can-be-seen .accordion-header{
    border: none;
}
.how-you-can-be-seen .accordion-body{
    padding: 0 15px 10px 15px;
}
.how-you-can-be-seen .accordion-header .accordion-button{
    padding: 15px;
}
.how-you-can-be-seen .accordion-body p{
    margin-bottom: 5px;
}
.how-you-can-be-seen .accordion-body p,
.how-you-can-be-seen .accordion-body a{
    color: #666564;
    font-size: 14px;
}
.accordion-button:not(.collapsed)::after{
    color: #666564;
}
.accordion-button::after {
    background-image: none !important;
    font-family: "bootstrap-icons" !important;
    content: "\F286" !important;
    transform: none !important;
    font-size: 16px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.accordion-button.collapsed::after {
    content: "\F282" !important;
}
.get-to-the-heart-header p{
    font-size: 12px;
}
/* ==========================================================================
   Care Carousel
   ========================================================================== */

.care-track-wrapper {
    overflow: hidden;
    margin: 0 -15px;
    padding: 0 15px; /* keeps content away from edges on small screens */
}


.care-track {
    display: flex;
    gap: 20px;
    padding: 15px 0; /* vertical padding only; horizontal handled by wrapper */
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.care-track::-webkit-scrollbar {
    display: none;
}

.care-card {
    flex: 0 0 auto;
    border-radius: 18px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    scroll-snap-align: start;
    transition: transform 0.3s;
}

.care-card:hover {
    transform: translateY(-5px);
}

.care-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.care-title {
    font-size: 14px;
    line-height: 1.2;
    margin-bottom: 15px;
    font-weight: 400;
}

.care-date {
    font-size: 12px;
    color: #888;
    margin-bottom: 30px;
    display: block;
}

.care-desc {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 15px;
}

.care-link {
    font-size: 14px;
    text-decoration: none;
    color: #0C2E4C;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    transition: gap 0.2s;
}

.care-link:hover {
    gap: 12px;
}

.card-navy {
    background-color: #0C2E4C;
    color: #fff;
    width: 300px;
    min-height: 448px;
}
.card-navy .care-link { color: #fff; }

.card-navy .care-title {
    font-size: 28px;
}

.card-image {
    background-size: cover;
    background-position: center;
    width: 353px;
    min-height: 448px;
    position: relative;
}

.card-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 40%, rgba(0,0,0,0.8) 100%);
    border-radius: 18px;
    z-index: 1;
}
.card-image .care-content,
.card-image .care-link {
    position: relative;
    z-index: 2;
}
.card-image .align-bottom {
    justify-content: flex-start;
    flex-grow: 1;
}

.card-grey {
    background-color: #7A7A7A;
    color: #fff;
    width: 450px;
}
.card-grey .care-desc { color: #E5E5E5; }
.card-grey .care-title {
    font-size: 14px;
}
.card-grey p {
    font-size: 12px;
}
.card-grey .care-content {
    position: relative;
}
.card-grey .care-content .care-author {
    position: absolute;
    bottom: 0;
}
.card-navy .care-date {
    color: white;
}
.care-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 25px;
    padding: 10px;
    border-radius: 4px;
}
.author-img {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    object-fit: cover;
}
.author-info {
    display: flex;
    flex-direction: column;
}
.author-name {
    font-size: 13px;
    font-weight: 600;
}
.author-desc {
    font-size: 12px;
    color: #CCC;
}

.card-white {
    background-color: #fff;
    width: 300px;
    min-height: 400px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.card-white .care-title { color: #0C2E4C; }

.care-controls {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.care-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid #CCC;
    background: #fff;
    color: #0C2E4C;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.care-btn:hover:not(:disabled) {
    background: #0C2E4C;
    color: #fff;
    border-color: #0C2E4C;
}

.care-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}
.card-white .care-title {
    font-size: 28px;
}
footer{
    background-image: url("../images/footer-bg.png");
    background-repeat: no-repeat;
    background-position: top center;
    background-size: cover;
    height: auto;
}
footer .footer-logo img{
    width: 81px;
}
footer .title{
    color: #fff;
    margin-bottom: 15px;
    font-size: 16px;
}
footer ul{
    padding-left: 0;
    margin-left: 0;
    list-style: none;
    font-size: 12px;
    line-height: 26px;
}
footer ul li a{
    color: #fff;
    text-decoration: none;
}
footer .footer-copyright,
footer .footer-links a{
    color: #0D3050;
    text-decoration: none;
    font-size: 14px;
}
footer .placeholder-block{
    min-height: 300px;
}


/* ==========================================================================
   Specialist Modal Grid
   ========================================================================== */

/* Modal Background */
#specialistModal .modal-content {
    background-color: #FDFCFA;
}

/* Top filter buttons */
.btn-filter {
    background: transparent;
    border: 1px solid #D1D1D1;
    border-radius: 30px;
    padding: 8px 20px;
    font-size: 14px;
    color: #0C2E4C;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-filter.active,
.btn-filter:hover {
    background: #0C2E4C;
    color: #fff;
    border-color: #0C2E4C;
}

/* Seamless grid layout (collapses borders) */
.specialist-grid {
    border-top: 1px solid #E5E5E5;
    border-left: 1px solid #E5E5E5;
}

.specialist-card {
    position: relative;
    border-right: 1px solid #E5E5E5;
    border-bottom: 1px solid #E5E5E5;
    overflow: hidden;
    aspect-ratio: 1 / 1; /* Forces perfect squares */
    background-color: #fff;
    cursor: pointer;
}

/* Image styling */
.specialist-card .doc-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

/* Hover Info Panel (Hidden by default) */
.specialist-info-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(253, 252, 250, 0.95); /* Semi-transparent light background */
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 2;
}

/* Show panel and zoom image on hover */
.specialist-card:hover .specialist-info-hover {
    opacity: 1;
    visibility: visible;
}

.specialist-card:hover .doc-img {
    transform: scale(1.03);
}

/* Typography */
.doc-name {
    font-size: 20px;
    font-weight: 400;
    color: #0C2E4C;
    margin-bottom: 16px;
    font-family: 'TT Hoves Pro Trial', sans-serif;
}

.doc-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.doc-tags .tag {
    background-color: #CCE3E6;
    color: #0C2E4C;
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 20px;
}

.doc-desc {
    font-size: 13px;
    color: #666564;
    line-height: 1.5;
    margin-bottom: 20px;
}

.doc-phone {
    font-size: 14px;
    color: #0C2E4C;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}
#specialistModal .modal-header .btn-close{
    margin-top: -10px !important;
}


