:root {
    --background: #FFF;
    --onBackground: #000;
    --onSurfaceVariant: #222;
    --outline: #999;
    --secondary: #0B75DF; /*keep as secondar*/
    --secondaryDark: #003d80; /*keep as secondaryDark*/
    --secondaryLight: #16A1FB;
    --surfaceVariant: #fafafa;
}

body {
    background-color: var(--background);
    color: var(--onBackground);
    width: 100vw;
    height: 100vh;
    overflow-x: hidden;
}

.body1 {
    overflow-y: hidden;
}

.body-index {
    background-color: #f6f6f6;
}

* {
    margin: 0;
    padding: 0;
    list-style: none;
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
    text-decoration: none;
}


input[type=number] {
    -moz-appearance: textfield;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="file"] {
    position: absolute;
    left: 0;
    opacity: 0;
    top: 0;
    bottom: 0;
}

textarea:focus, input:focus {
    outline: none;
}

input, button {
    font-family: 'Poppins', sans-serif;
    border: none;
}

button:hover, img:hover, a:hover {
    cursor: pointer;
}

textarea {
    resize: vertical;
}

img {
    outline: none;
    border: none;
}

ul {
    list-style: none !important;
}

/*!*!FONT SIZES*!*/
.smallest-font {
    font-size: 0.6rem;
}

.small-font {
    font-size: 0.8rem;
}

.medium-font {
    font-size: 1rem;
}

.large-font {
    font-size: 1.2rem;
}

.larger-font {
    font-size: 2.4rem;
}

.largest-font, .quote {
    font-size: 5rem;
}

.bold {
    font-weight: 700;
}

/*!*COMMON FLEX CONFIGS*!*/
.flexwrap {
    flex-wrap: wrap;
}

.flexrow {
    display: flex;
    flex-direction: row;
}

.flexrowreverse {
    display: flex;
    flex-direction: row-reverse;
}

.flexcolumn {
    display: flex;
    flex-direction: column;
}

.horizontalcenter {
    justify-content: center;
}

.verticalcenter {
    align-items: center;
}

.vhcenter, .fab {
    justify-content: center;
    align-items: center;
}

.spacebetween {
    justify-content: space-between;
    width: 100%;
}

.sb {
    align-content: space-between;
    width: 100%;
}

.frspvc {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    align-items: center;
}

.flexstart {
    align-self: flex-start;
}

.flexend {
    justify-content: flex-end;
}

.circular {
    border-radius: 50%;
    padding: 5px;
}

.dynamic {
    display: flex;
    flex-wrap: wrap;
    overflow-y: auto;
}

.singleline {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    word-wrap: break-word;
}

/*!*!FOOTER*!*/
footer {
    padding: 56px;
    color: var(--onBackground);
    background-color: var(--surfaceVariant);
}

footer hr {
    margin: 36px 0;
}

footer a:hover {
    text-decoration: underline;
}

.legal {
    font-size: 12px;
}

.legal a {
    margin-left: 10px;
    color: var(--onBackground);
}

.links div {
    margin-left: 36px;
    min-width: 120px;
}

.links span {
    color: var(--outline);
    font-size: 12px;
}

.links a {
    color: var(--onBackground);
    margin-top: 10px;
}

header {
    padding: 12px 60px;
    background-color: var(--secondary);
}

header nav {
    margin-left: 40px;
}

header nav a {
    color: white;
    margin-right: 12px;
}

header nav a:hover {
    text-decoration: underline;
}

/*!*TESTIMONIALS*!*/
.testimonials {
    padding: 56px 56px 112px 56px;
    color: white;
    background-color: var(--secondary);
}

.testimonials hr {
    background-color: white;
    width: 50px;
    margin: 12px 0;
    height: 2px;
    border-radius: 4px;
    outline: none;
    border: none;
}

.testimonials p {
    max-width: 60%;
    line-height: 2.4rem;
    margin: 12px 0;
    text-align: center;
}

/*!*CONTACTS*!*/
.contacts {
    padding: 56px 56px 112px 56px;
    color: white;
    background-color: var(--onBackground);
}

.contacts input, .contacts textarea {
    border-radius: 12px;
    background-color: transparent;
    border: 1px solid var(--outline);
    padding: 8px;
    width: 100%;
    color: var(--background);
    caret-color: var(--outline);
}

.contacts label {
    margin-left: 12px;
    font-size: 0.8rem;
    margin-top: 10px;
}

.contacts .sixty span {
    margin-top: 18px;
    font-size: 0.6rem;
}

.contacts .forty div {
    margin-top: 16px;
}

.contacts button {
    background-color: var(--background);
    padding: 8px;
    color: var(--onBackground);
    width: 100%;
    margin-top: 24px;
    border-radius: 16px;
    transition: 0.3s ease-in-out;
}

.contacts button:hover {
    background-color: var(--secondaryLight);
    color: var(--background);
}

.contacts a {
    color: var(--background);
}

.contacts a:hover {
    text-decoration: underline;
}

header button, header a {
    min-width: 76px;
    border-radius: 4px;
    padding: 4px 8px;
}

.button-white {
    background-color: var(--background);
    color: var(--onBackground);
}

.button-blue {
    background-color: var(--secondaryLight);
    color: var(--background);
}

.contacts img {
    margin-right: 12px;
}

.contacts .sixty, .contacts .forty, .calltoaction .fifty {
    padding: 36px;
}

.calltoaction .fifty {
    padding: 36px 72px;
}

.calltoaction {
    color: white;
    background-color: var(--secondary);
}

.calltoaction p {
    margin: 24px 0;
}

.doctors {
    background-color: #0072BB;
}

.disciplines {
    background-color: #f6f6f6;
}

.doctors, .disciplines {
    padding: 48px 15%;
}

.doctors h2 {
    color: var(--background);
}

.doctors h2, .disciplines h2, .patients h2 {
    text-align: center;
    margin: 24px 0;
}

.patients {
    padding: 48px 15%;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    background-color: var(--secondaryLight);
}

.patients a, .doctors a {
    align-self: end;
    margin-top: 24px;
}

.doctors ul li, .patients ul li, .disciplines ul li {
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 16px;
    padding: 24px;
}

.facilities-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 16px;
    background-color: var(--background);
}

.facility-bottom {
    border-radius: 12px;
    padding: 8px 24px;
    background-color: var(--background);
    color: black;
}

.doctors ul li .material-symbols-rounded, .patients ul li .material-symbols-rounded {
    font-size: 30px;
}

.doctors ul li, .disciplines ul li {
    background-color: var(--background);
    transition: all 0.3s ease-in-out;
    cursor: pointer;
    color: var(--onSurfaceVariant);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.patients ul li {
    background-color: var(--background);
    transition: all 0.3s ease-in-out;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.25);
}

.patients h2 {
    text-align: center;
    margin-bottom: 24px;
    color: var(--background);
}

.doctors ul li span, .patients ul li span, .disciplines ul li span {
    margin: 12px 0;
}

.doctors .dynamic li:hover, .patients .dynamic li:hover, .disciplines .dynamic li:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/*!*!CUSTOM VIEWS*!*/
.text-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border: 8px solid #c0dfff;
    gap: 8px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
}
.blue {
    background-color: #006aff;
    color: white;
}
.white {
    color: #006aff;
    background-color: white;
}
.text-button-text {
    font-size: 1em;
    font-weight: 700;
    letter-spacing: 1px;
}
.text-button-svg {
    padding-top: 5px;
    height: 100%;
    width: fit-content;
}
.text-button-svg svg {
    width: 50px;
    height: 30px;
}
.text-button.blue:hover {
    border: 8px solid #b1d8ff;
    background-color: #1b7aff;
}
.text-button.white:hover {
    border: 8px solid #1b7aff;
}
.text-button:active {
    border: 5px solid #c0dfff;
}
.text-button:hover .text-button-svg svg {
    animation: jello-vertical 0.9s both;
    transform-origin: left;
}

@keyframes jello-vertical {
    0% {
        transform: scale3d(1, 1, 1);
    }
    30% {
        transform: scale3d(0.75, 1.25, 1);
    }
    40% {
        transform: scale3d(1.25, 0.75, 1);
    }
    50% {
        transform: scale3d(0.85, 1.15, 1);
    }
    65% {
        transform: scale3d(1.05, 0.95, 1);
    }
    75% {
        transform: scale3d(0.95, 1.05, 1);
    }
    100% {
        transform: scale3d(1, 1, 1);
    }
}

/*!* From Uiverse.io by ernestnash *!*/
.square-button {
    display: inline-block;
    padding: 0.9rem 1.8rem;
    font-size: 16px;
    font-weight: 700;
    color: white;
    border: 3px solid white;
    cursor: pointer;
    position: relative;
    background-color: transparent;
    text-decoration: none;
    overflow: hidden;
    z-index: 1;
    font-family: inherit;
}

.facility-list {
    display: flex;
    flex-direction: row;
    overflow-x: scroll;
}

.terms-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    background-color: var(--background);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.terms-container h1 {
    font-size: 2.5rem;
    color: var(--onBackground);
    text-align: center;
    margin-bottom: 10px;
}

.terms-container .effective-date {
    font-size: 0.9rem;
    color: var(--outline);
    text-align: center;
    margin-bottom: 40px;
}

.terms-container h2 {
    font-size: 1.5rem;
    color: var(--secondaryLight);
    margin-top: 30px;
    margin-bottom: 15px;
}

.terms-container h3 {
    font-size: 1.2rem;
    color: var(--onSurfaceVariant);
    margin-top: 20px;
    margin-bottom: 10px;
}

.terms-container p, .terms-container ul {
    font-size: 1rem;
    color: var(--onSurfaceVariant);
    margin-bottom: 15px;
}

.terms-container ul {
    list-style-type: none;
    padding-left: 20px;
}

.terms-container ul li {
    margin-bottom: 8px;
}

.terms-container ul li::before {
    content: "•";
    color: var(--secondary);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

.terms-container a {
    color: var(--secondary);
    text-decoration: none;
}

.terms-container a:hover {
    text-decoration: underline;
}

.feature-list {
    padding: 50px 10%;
}

.facilities-list li {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.facilities-list li img {
    height: 200px;
    width: 200px;
}

/* --- Pricing Section --- */
.pricing-section {
    text-align: center;
    padding: 60px 20px;
}

.pricing-section h2 {
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--secondaryDark);
}

.pricing-section p {
    font-size: 1.1em;
    color: #666;
    margin-bottom: 40px;
}

.pricing-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.pricing-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 40px;
    width: 300px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.feature-card, .facilities-list li {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.pricing-card.featured {
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px var(--secondary), 0 10px 30px rgba(0, 0, 0, 0.1);
}

.pricing-card h3 {
    font-size: 1.8em;
    font-weight: 600;
    color: var(--secondaryDark);
    margin-bottom: 10px;
}

.pricing-card .price {
    margin: 20px 0;
}

.pricing-card .price .currency {
    font-size: 1.5em;
    font-weight: 500;
    color: #555;
}

.pricing-card .price .amount {
    font-size: 3em;
    font-weight: 700;
    color: var(--secondaryDark);
}

.pricing-card .price .period {
    font-size: 1em;
    color: #888;
}

.pricing-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
    text-align: left;
    width: 100%;
}

.pricing-card ul li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 1em;
    color: #555;
}

.pricing-card ul li .material-symbols-rounded {
    margin-right: 10px;
    font-size: 1.2em;
    color: var(--secondary);
}

/* --- Login Section --- */
.login-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    background-color: var(--surfaceVariant);
}

.login-section h2 {
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 40px;
    color: var(--secondaryDark);
    text-align: center;
}

.login-section a {
    color: var(--secondaryLight);
}

.login-form {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding: 40px;
    width: 100%;
    max-width: 400px;
    box-sizing: border-box;
}

.input-group {
    margin-bottom: 25px;
}

.input-group label {
    display: block;
    font-size: 1em;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

.input-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1em;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: var(--secondaryLight);
}

.input-group .forgot-password {
    display: block;
    text-align: right;
    font-size: 0.9em;
    color: var(--secondaryLight);
    margin-top: 5px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.input-group .forgot-password:hover {
    color: var(--secondaryDark);
}

.or-separator {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 30px 0;
    color: #aaa;
}

.or-separator::before,
.or-separator::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #eee;
}

.or-separator:not(:empty)::before {
    margin-right: .25em;
}

.or-separator:not(:empty)::after {
    margin-left: .25em;
}

.google-login-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1em;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    background-color: #f8f8f8;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.google-login-button:hover {
    background-color: #f0f0f0;
    border-color: #aaa;
}

.google-login-button img {
    height: 20px;
    width: 20px;
    margin-right: 10px;
}

:root {
    --primary-color: #006aff;
    --primary-color-dark: #003d80;
    --secondary-color: #5384e5;
    --background-color: #f4f7fa;
}

.cta-button {
    display: inline-block;
    font-size: 1.1em;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
}

.cta-button.primary {
    background-color: var(--secondaryLight);
    color: #fff;
}

.cta-button.primary:hover {
    background-color: var(--secondaryDark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.cta-button.secondary {
    background-color: var(--secondary);
    color: #fff;
}

.cta-button.secondary:hover {
    background-color: #4071d1; /* A slightly darker shade of secondary */
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* --- Responsive adjustments for smaller screens --- */
@media (max-width: 768px) {
    .pricing-container {
        flex-direction: column;
        align-items: center;
    }

    .pricing-card {
        width: 100%;
    }
}

/*!snackbar*/
#snackbar {
    visibility: hidden;
    min-width: 250px;
    max-width: 40vw;
    background-color: var(--secondary);
    color: var(--background);
    text-align: center;
    border-radius: 2px;
    padding: 16px;
    position: fixed;
    z-index: 7;
    left: 0;
    right: 0;
    margin: auto;
    bottom: 30px;
}

#snackbar.show {
    visibility: visible;
    -webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
    animation: fadein 0.5s, fadeout 0.5s 2.5s;
}

/*!VIEW FACILITY PAGE*/
.content {
    padding: 20px;
    max-width: 900px;
    margin: 0 auto;
    flex: 1;
}
.facility-header {
    position: relative;
    text-align: center;
    padding: 0;
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
}
.facility-banner-container {
    width: 100%;
    height: 200px;
    object-fit: scale-down;
}
.facility-logo {
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    height: 120px;
    width: 120px;
    border-radius: 50%;
    border: 4px solid var(--background);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
.facility-name-container {
    margin-top: 50px;
    padding-bottom: 20px;
}
.facility-name {
    font-size: 2.5em;
    font-weight: 700;
    color: var(--secondaryDark);
    margin: 0;
    text-align: center;
}
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}
.info-card {
    background-color: var(--background);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
}
.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}
.info-card .label {
    font-size: 0.9em;
    color: var(--outline);
    font-weight: 500;
}
.info-card .value {
    font-size: 1.1em;
    font-weight: 600;
    color: var(--onSurfaceVariant);
}

.info-card a:hover {
    color: var(--secondary);
}

.info-card-wide {
    grid-column: 1 / -1;
}
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
    padding: 20px;
    background-color: var(--background);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}
.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1em;
}
.contact-item .material-symbols-rounded {
    color: var(--secondary);
    font-size: 1.5em;
}

/*!MAP*/
.map-content {
    width: 100vw;
    height: calc(100vh - 130px);
}
#map {
    height: 100%;
    width: 100%;
}

/* Filter Panel Styles */
.filter-panel {
    position: absolute;
    top: 100px;
    right: 10px;
    background: white;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    max-width: 280px;
    max-height: 80vh;
    overflow-y: auto;
}

.filter-panel h3 {
    margin: 0 0 15px 0;
    font-size: 16px;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}

.filter-group {
    margin-bottom: 12px;
}

.filter-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    font-size: 12px;
    color: #555;
}

.filter-group select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 12px;
    background: white;
}

.filter-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.filter-btn {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
}

#apply-filters {
    background: #007bff;
    color: white;
}

#apply-filters:hover {
    background: #0056b3;
}

#reset-filters {
    background: #6c757d;
    color: white;
}

#reset-filters:hover {
    background: #545b62;
}

.stats {
    margin-top: 10px;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 4px;
    font-size: 11px;
    color: #666;
}

/* Custom popup styling */
.custom-popup {
    font-family: Arial, sans-serif;
    min-width: 200px;
}

.popup-title {
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 5px;
    color: #333;
}

.popup-detail {
    font-size: 12px;
    margin: 2px 0;
    color: #666;
}

/* Legend styling */
.legend {
    background: white;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.4);
    line-height: 1.5;
}

.legend h4 {
    margin: 0 0 10px 0;
    font-size: 14px;
}

.legend i {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    opacity: 0.7;
    display: inline-block;
    text-align: center;
}

.legend-container {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid #ddd;
}

.legend-container h4 {
    margin: 0 0 10px 0;
    font-size: 1.1em;
    color: #333;
}

.legend-section {
    margin-bottom: 10px;
}

.legend-section h5 {
    margin: 0 0 5px 0;
    font-size: 0.9em;
    color: #555;
    font-weight: bold;
}

.legend-item {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
    font-size: 0.85em;
    color: var(--text-secondary);
}

/* Style for the Color Key Swatch (uses a pseudo-element) */
.legend-item::before {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-right: 8px;
    border-radius: 3px;
    border: 1px solid #ccc;
    flex-shrink: 0; /* Prevents swatches from shrinking */
}


/* Manual rules (fallback/simpler implementation) */
.legend-item[data-color="#5BC0DE"]::before { background-color: #5BC0DE; border-color: #337ab7; }
.legend-item[data-color="#D9534F"]::before { background-color: #D9534F; border-color: #d43f3a; }
.legend-item[data-color="#5CB85C"]::before { background-color: #5CB85C; border-color: #4cae4c; }
.legend-item[data-color="#777777"]::before { background-color: #777777; border-color: #666; }
.legend-item[data-color="#F0AD4E"]::before { background-color: #F0AD4E; border-color: #eea236; }


/* Style for SVG Shapes Key */
.legend-shape {
    width: 18px; /* Control size of the SVG visualization */
    height: 18px;
    margin-right: 5px;
    /* Ensure only stroke or fill is set based on the path definition */
    stroke: #333;
    stroke-linecap: round;
}

.legend-container hr {
    border: none;
    border-top: 1px dashed #eee;
    margin: 10px 0;
}

/*!BLOG*/
.blog-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-width: 1200px;
    margin: 0 auto;
}

.blog-list-item {
    margin-bottom: 2rem;
    background: var(--background);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid var(--border);
}

.blog-list-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.post-content-wrapper {
    display: flex;
    min-height: 200px;
}

.post-text-content {
    flex: 1;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.post-text-content h3 {
    margin: 0 0 1rem 0;
    color: var(--onBackground);
    font-size: 1.25rem;
    line-height: 1.4;
}

.post-text-content .smallest-font {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.post-text-content .smallest-font span {
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 500;
}

.post-text-content p {
    flex: 1;
    margin: 0 0 1rem 0;
    color: var(--onBackground);
    line-height: 1.6;
    opacity: 0.8;
}

.read-more-link {
    align-self: flex-start;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.read-more-link:hover {
    color: var(--primary-dark);
    transform: translateX(4px);
}

.post-image-container {
    flex: 0 0 300px;
    position: relative;
}

.post-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-list-item:hover .post-image-container img {
    transform: scale(1.05);
}

/* No Posts Message */
.no-posts-message {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--background);
    border-radius: 12px;
    border: 2px dashed var(--border);
}

.no-posts-content .material-symbols-rounded {
    font-size: 4rem;
    color: #cbd5e1;
    margin-bottom: 1rem;
}

.no-posts-content h3 {
    color: var(--onBackground);
    margin-bottom: 0.5rem;
}

.no-posts-content p {
    color: #64748b;
    margin: 0;
}

/* Popup Styles */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.96);
    display: none;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: white;
}

.popup-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-overlay.visible {
    opacity: 1;
}

.popup-container {
    background: var(--background);
    border-radius: 16px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    transform: scale(0.9);
    opacity: 0;
    transition: all 0.3s ease;
}

.popup-overlay.visible .popup-container {
    transform: scale(1);
    opacity: 1;
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 1.5rem 1rem;
}

.popup-header h2 {
    margin: 0;
    color: var(--onBackground);
    font-size: 1.5rem;
    line-height: 1.3;
    flex: 1;
    padding-right: 1rem;
}

.popup-close {
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-close:hover {
    background: var(--surfaceVariant);
    color: var(--onBackground);
}

.popup-content {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.popup-image {
    margin-bottom: 1.5rem;
    border-radius: 8px;
    overflow: hidden;
}

.popup-image img {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
}

.popup-description {
    margin-bottom: 1.5rem;
}

.popup-excerpt {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--onBackground);
    font-weight: 500;
    margin: 0;
}

.popup-article-content {
    line-height: 1.7;
    color: var(--onBackground);
}

.popup-article-content h3.popup-heading {
    margin: 1.5rem 0 1rem 0;
    color: var(--onBackground);
}

.popup-article-content h4.popup-heading {
    margin: 1.25rem 0 0.75rem 0;
    color: var(--onBackground);
}

.popup-article-content p {
    margin-bottom: 1rem;
}

.popup-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border);
    background: var(--background);
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
    gap: 1rem;
}

.popup-meta {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.popup-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
}

.popup-tag {
    display: inline-flex;
    align-items: center;
    background: var(--surfaceVariant);
    color: var(--onBackground);
    padding: 0.375rem 0.75rem;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: lowercase;
    transition: all 0.2s ease;
    cursor: pointer;
    user-select: none;
    border: 1px solid var(--border);
}

.popup-tag:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(1, 111, 249, 0.3);
}

.tags-section {
    margin: 1.5rem 0;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #64748b;
    font-size: 0.875rem;
}

.meta-item .material-symbols-rounded {
    font-size: 1rem;
}

.popup-share {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.popup-share:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

/* Toast Message */
.toast-message {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--onBackground);
    color: var(--background);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    z-index: 1001;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.toast-message.show {
    transform: translateX(-50%) translateY(0);
}



/* Responsive Design */
@media (max-width: 768px) {
    .post-content-wrapper {
        flex-direction: column-reverse;
    }

    .post-image-container {
        flex: none;
        height: 200px;
    }

    .popup-container {
        width: 95%;
        margin: 1rem;
    }

    .popup-header {
        flex-direction: column;
        gap: 1rem;
    }

    .popup-header h2 {
        padding-right: 0;
    }

    .popup-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .popup-meta {
        gap: 1rem;
    }

    .meta-item {
        font-size: 0.8rem;
    }

    .popup-tags {
        gap: 0.375rem;
    }

    .popup-tag {
        padding: 0.25rem 0.625rem;
        font-size: 0.7rem;
    }

    .popup-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .popup-actions {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 480px) {
    .post-text-content {
        padding: 1rem;
    }

    .post-text-content .smallest-font {
        flex-direction: column;
        gap: 0.25rem;
    }

    .popup-content {
        padding: 1rem;
    }

    .popup-header {
        padding: 1rem 1rem 0;
    }

    .popup-footer {
        padding: 1rem;
    }
}

@media screen and (min-width: 1px) {
    .facilities-item, .doctors ul li, .patients ul li, .disciplines ul li, .facilities-list li {
        flex: 0 0 100%;
        max-width: calc(100% - 10px);
        margin: 5px;
    }
    .calltoaction {
        padding: 5px 5px 10px 5px;
    }
    .doctor-image, .center-menu, .platform-links {
        display: none;
    }
    .links, .image-links {
        display: flex;
        flex-direction: column;
    }
    .fifty {
        width: 100vw;
    }
    .legal {
        display: flex;
        flex-direction: column;
    }
    .largest-font {
        font-size: 2rem;
    }
    .large-font {
        font-size: 1rem;
    }
}

@media screen and (min-width: 640px) {
    .doctors ul li, .patients ul li, .disciplines ul li {
        flex: 0 0 50%;
        max-width: calc(50% - 10px);
        margin: 5px;
    }
    .facilities-item {
        flex: 0 0 50%;
        max-width: calc(50% - 10px);
        margin: 5px;
    }
    .terms-container {
        padding: 30px;
    }
    .calltoaction {
        padding: 10px 10px 20px 10px;
    }
    .sixty {
        width: 100vw;
    }
    .forty {
        width: 100vw;
    }
    .platform-links {
        display: flex;
    }
}

@media screen and (min-width: 960px) {
    .doctors ul li, .patients ul li, .disciplines ul li {
        flex: 0 0 50%;
        max-width: calc(50% - 10px);
        margin: 5px;
    }
    .facilities-item {
        flex: 0 0 33.333%;
        max-width: calc(33.333% - 10px);
        margin: 5px;
    }
    .sixty {
        width: 60%;
    }
    .forty {
        width: 40%;
    }
    .fifty {
        width: 50%;
    }
    .doctor-image {
        display: flex;
    }
    .center-menu {
        display: flex;
    }
    .image-links {
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
    }
    .legal {
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
        align-items: center;
    }
    .largest-font {
        font-size: 5rem;
    }
    .large-font {
        font-size: 1.2rem;
    }
}

@media screen and (min-width: 1280px) {
    .doctors ul li, .patients ul li, .disciplines ul li {
        flex: 0 0 33.333%;
        max-width: calc(33.333% - 10px);
        margin: 5px;
    }

    .facilities-item {
        flex: 0 0 25%;
        max-width: calc(25% - 10px);
        margin: 5px;
    }
    .calltoaction {
        padding: 56px 56px 112px 56px;
    }
    .links {
        display: flex;
        flex-direction: row;
    }
}

@media screen and (min-width: 1440px) {
    .doctors ul li, .patients ul li, .disciplines ul li {
        flex: 0 0 25%;
        max-width: calc(25% - 10px);
        margin: 5px;
    }

    .facilities-item {
        flex: 0 0 20%;
        max-width: calc(20% - 10px);
        margin: 5px;
    }
}
