/* --- Base Styles --- */
html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    margin-bottom: 60px;
}

/* --- PVHMC Branding & Disclaimer --- */
.disclaimer {
    color: rgb(114, 18, 61);
    font-weight: 400;
    margin-bottom: 1.5rem;
}

/* --- Form & Interaction Focus --- */
.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

/* --- PVHMC Navigation & Header Image Logic --- */
#secondaryNav.hide,
#secondaryNav.hide + span.spacer {
    width: 0;
    overflow: hidden;
    border-width: 0;
    min-width: 0;
}

    #secondaryNav.hide ~ section .headerImgCont {
        width: 958px;
        top: 0;
        left: 0;
    }

main #secondaryNav.hide ul {
    display: none;
}

/* --- Find A Doctor Search Layout (Iframe Optimized) --- */

/* Parent container for side-by-side layout */
.search-flex-container {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
}

/* Form occupies the flexible space on the left */
.searchForm {
    flex: 1;
}

/* Image container stays fixed to its content size */
.stethoscope {
    flex: 0 0 auto;
}

/* Stethoscope image height constraint */
.StethoscopeImg {
    max-height: 200px;
    width: auto;
    display: block;
    border-radius: 10px;
    border: 1px solid #dee2e6;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* --- Responsive Behavior --- */

/* Stack elements vertically for narrow iframes or mobile devices */
@media (max-width: 500px) {
    .search-flex-container {
        flex-direction: column-reverse;
        gap: 15px;
    }

    .StethoscopeImg {
        max-height: 150px;
        margin: 0 auto;
    }
}

/* Rounded Physician Cards */
.physician-card {
    border-radius: 15px; /* Softer rounded corners */
    border: 1px solid #e9ecef;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    /* Subtle hover effect to make it feel interactive */
    .physician-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 15px rgba(0,0,0,0.1) !important;
        border-color: rgb(114, 18, 61); /* PVHMC Maroon on hover */
    }

/* Thumbnail Styling */
.thumbnail-wrapper {
    width: 160px;
    height: 160px;
    overflow: hidden;
    border-radius: 20px; /* This creates the outer rounded corner */
    border: 1px solid #dee2e6;
    background-color: #fff; /* White background fills the gaps */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px; /* This "frame" look prevents the image edges from hitting the corners */
}

.physpic-thumb {
    max-width: 100%;
    max-height: 100%;
    /* 'contain' ensures the whole face is visible */
    object-fit: contain;
    /* This adds a slight round to the image itself so it doesn't look sharp */
    border-radius: 8px;
    /*object-position: center;*/
}


.physpic {
    width: 100%;
    height: auto;
    display: block;
    /* This ensures the entire person is visible in the 350px frame */
    object-fit: contain;
}

    .physpic.rounded {
        object-fit: contain;
        background-color: #fff;
        padding: 10px;
    }


/* Ensure the description column has enough space with the wider 160px image */
.physician-card .col.ms-3 {
    padding-left: 15px;
    padding-right: 20px;
}

/* Match the Details page style for the card-body */
.physician-card .card-body {
    padding: 1rem;
}




/* Ensure the specialty badge uses the PVHMC color scheme */
.specialty-badge {
    background-color: #f8f9fa;
    color: rgb(114, 18, 61);
    border: 1px solid #dee2e6;
    font-size: 0.8rem;
    padding: 5px 10px;
}

/* Link Styling */

/* Physician Name Header Styling */
.physician-name-header {
    color: #72123d;
    border-bottom: 2px solid #72123d;
    padding-bottom: 10px;
    font-weight: 700;
}

.physician-name-link {
    color: rgb(114, 18, 61); /* PVHMC Maroon */
    font-weight: 600;
}

    .physician-name-link:hover {
        color: #4e0d2a;
        text-decoration: underline !important;
    }



/* Ensure the results page has a top anchor for the back-to-top link */
#top {
    scroll-behavior: smooth;
}



/* Container for the details column */
.details {
    padding-left: 50px;
}

.details a {
    color: rgb(114, 18, 61);
    text-decoration: none;
}

    .details a:hover {
        text-decoration: underline;
    }

.btn-maroon {
    background-color: rgb(114, 18, 61);
    color: white;
    transition: background-color 0.2s;
}

    .btn-maroon:hover {
        background-color: rgb(90, 14, 48); /* Slightly darker for hover */
        color: white;
    }


/* Individual data blocks (Specialty, Address, etc.) */
.resultBox {
    margin-bottom: 1.2rem;
    line-height: 1.4;
}

/* The Label (e.g., Specialty:) */
.resultTitle {
    color: #72123d; /* PVHMC Maroon */
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 2px;
}

/* The Data (e.g., Dermatology) */
.resultInfo {
    color: #333;
    font-size: 1.05rem;
    font-weight: 400;
    padding-left: 2px; /* Slight indent for better readability */
}

    /* Specific styling for the phone link within the info block */
    .resultInfo a {
        color: #72123d;
        text-decoration: none;
        font-weight: 500;
    }

        .resultInfo a:hover {
            text-decoration: underline;
        }
