/* Base Styles */
:root {
    --labcorp-blue: #004785;
    --labcorp-accent: #007BC7;
    --labcorp-light: #F5F7FA;
    --labcorp-text: #333333;
    --labcorp-success: #4CAF50;
    --labcorp-blue-light: #e6f2ff;
    --labcorp-gradient-start: #003366;
    --labcorp-gradient-end: #005a9e;
    --labcorp-card-shadow: 0 4px 12px rgba(0,71,133,0.15);
    --transition-standard: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--labcorp-text);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #fafafa;
    line-height: 1.6;
    overflow: hidden; /* Prevent scrollbars caused by scaling */
}

.page-wrapper {
    transform: scale(0.9);
    transform-origin: top center; /* Center the scaled content */
    width: 100%;
    margin: 0 auto; /* Center the wrapper horizontally */
    flex: 1; /* Ensure it takes up the remaining space */
    display: flex;
    flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
}

/* Header Styles */
.labcorp-header {
    background: linear-gradient(to right, var(--labcorp-gradient-start), var(--labcorp-gradient-end));
    color: white;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    width: 100%;
    transition: var(--transition-standard);
}



.header-scrolled {
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    padding: 0.5rem 0;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.8rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.logo-container {
    display: flex;
    align-items: center;
    transition: var(--transition-standard);
}

.logo-container:hover {
    transform: scale(1.02);
}

.brand-logo {
    height: 42px;
    width: auto; /* Ensure proper aspect ratio */
    object-fit: contain; /* Maintain image quality */
}

.footer-logo{

    height: 42px;
    width: auto; /* Ensure proper aspect ratio */
    object-fit: contain; /* Maintain image quality */
    
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 0.6rem 1rem;
    border-radius: 6px;
    transition: var(--transition-standard);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-item svg {
    width: 18px;
    height: 18px;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.nav-item.active {
    background: rgba(255, 255, 255, 0.2);
    position: relative;
}

.nav-item.active::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background-color: white;
    border-radius: 3px;
}


.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Authentication */
.auth-section {
    display: flex;
    align-items: center;
}

.login-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    font-weight: 600;
    transition: var(--transition-standard);
}

.login-btn:hover {
    background-color: white;
    color: var(--labcorp-blue);
    transform: translateY(-2px);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    position: relative;
    padding: 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition-standard);
}

.user-profile:hover {
    background: rgba(255, 255, 255, 0.2);
}

.user-avatar {
    width: 38px;
    height: 38px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.welcome-msg {
    font-size: 0.9rem;
    color: white;
}

.user-role {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    width: 200px;
    padding: 0.5rem;
    display: none;
    z-index: 100;
}

.user-profile:hover .dropdown-menu {
    display: block;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    color: var(--labcorp-text);
    text-decoration: none;
    border-radius: 6px;
    transition: var(--transition-standard);
}

.dropdown-item:hover {
    background: var(--labcorp-light);
    color: var(--labcorp-accent);
}

/* Hero Search */
.ai-search-container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0;
    width: 100%;
}

.hero-search {
    background: linear-gradient(120deg, var(--labcorp-blue), var(--labcorp-accent));
    border-radius: 0 0 20px 20px;
    padding: 3rem;
    color: white;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-search::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('/static/img/dna-pattern.svg');
    opacity: 0.05;
    z-index: 0;
}

.search-container {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.search-input-group {
    display: flex;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    margin: 2rem 0;
    overflow: hidden;
    transition: var(--transition-standard);
}

.search-input-group:focus-within {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.hero-search-input {
    flex: 1;
    border: none;
    padding: 1.2rem 1.5rem;
    font-size: 1.1rem;
    outline: none;
}

.hero-search-button {
    background: var(--labcorp-accent);
    color: white;
    border: none;
    padding: 0 2rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-standard);
}

.hero-search-button:hover {
    background: var(--labcorp-blue);
}

.search-icon {
    font-size: 1.2rem;
}

.search-examples {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 1rem;
}

 /* Ensure the login modal is centered */
 .login-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    padding: 2rem;
    position: relative;
    animation: modalOpen 0.3s ease;
}

@keyframes modalOpen {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
}

.modal-header h2 {
    color: var(--labcorp-blue);
    font-weight: 700;
}

.close-modal {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    transition: var(--transition-standard);
}

.close-modal:hover {
    color: var(--labcorp-text);
}

.modal-body {
    padding: 2rem;
    display: flex;
    gap: 2rem;
}

.login-illustration {
    flex: 0 0 45%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--labcorp-blue-light);
    border-radius: 8px;
    padding: 1rem;
}

.login-illustration img {
    max-width: 100%;
    max-height: 250px;
}

#loginForm {
    flex: 1;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--labcorp-text);
}

.input-with-icon {
    position: relative;
}

.input-with-icon svg {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

.input-with-icon input {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 2.8rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: var(--transition-standard);
}

.input-with-icon input:focus {
    border-color: var(--labcorp-accent);
    box-shadow: 0 0 0 3px rgba(0, 123, 199, 0.15);
    outline: none;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
}

.forgot-password {
    color: var(--labcorp-accent);
    text-decoration: none;
    font-size: 0.9rem;
}

.forgot-password:hover {
    text-decoration: underline;
}

.response-message {
    padding: 0.5rem 0;
    color: #f44336;
    font-size: 0.9rem;
}

/* Main Content */
.labcorp-main-content {
    flex: 1;
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

/* Search Results Section */
.search-results-section {
    margin-top: 3rem;
}

.test-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.test-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--labcorp-card-shadow);
    transition: var(--transition-standard);
    border: 1px solid #eee;
}

.test-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,71,133,0.2);
}

.test-card-header {
    background: var(--labcorp-blue-light);
    padding: 1.2rem;
    border-bottom: 1px solid #eee;
}

.test-number {
    display: inline-block;
    padding: 0.3rem 0.6rem;
    background: var(--labcorp-blue);
    color: white;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

.test-name {
    font-size: 1.3rem;
    color: var(--labcorp-blue);
    margin-bottom: 0.5rem;
}

.test-cpt {
    font-size: 0.9rem;
    color: #777;
}

.test-card-body {
    padding: 1.2rem;
}

.test-description {
    margin-bottom: 1.5rem;
    color: var(--labcorp-text);
}

.test-card-footer {
    padding: 1rem 1.2rem;
    background: #f5f5f5;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.view-details {
    background: var(--labcorp-accent);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-standard);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.view-details:hover {
    background: var(--labcorp-blue);
}

.relevance-score {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #777;
}

.score-bar {
    width: 80px;
    height: 6px;
    background: #ddd;
    border-radius: 3px;
    overflow: hidden;
}

.score-value {
    height: 100%;
    background: var(--labcorp-accent);
}

/* Footer Styles */
.labcorp-footer {
    background: linear-gradient(to right, var(--labcorp-gradient-start), var(--labcorp-gradient-end));
    color: white;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 2rem 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-brand {
    grid-column: 1 / -1;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}

.footer-logo {
    height: 32px;
    filter: brightness(0) invert(1);
}

.tagline {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.footer-section h4 {
    color: white;
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--labcorp-accent);
    border-radius: 3px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition-standard);
}

.footer-section a:hover {
    color: white;
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-standard);
}

.social-icon:hover {
    background: white;
    color: var(--labcorp-blue);
    transform: translateY(-3px);
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.ai-disclaimer {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.8rem;
}

.ai-badge {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.ai-disclaimer p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
}

.secure-session {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.security-badge {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--labcorp-success);
    font-weight: 600;
    font-size: 0.85rem;
}

.copyright {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition-standard);
}

.footer-links a:hover {
    color: white;
}

/* Animation Keyframes */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 123, 199, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0, 123, 199, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 123, 199, 0);
    }
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero-search {
        padding: 2rem 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .search-input-group {
        flex-direction: column;
    }
    
    .hero-search-button {
        padding: 1rem;
    }
    
    .modal-body {
        flex-direction: column;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
}



@media (max-width: 768px) {
    .test-results-grid {
        grid-template-columns: 1fr;
    }
}

/* ======================
   HOME PAGE ENHANCEMENTS
   ====================== */

   .labcorp-hero {
    background: linear-gradient(115deg, rgba(0, 71, 133, 0.92), rgba(0, 90, 158, 0.94)),
                url('/static/img/lab-background.jpg') center/cover;
    color: white;
    padding: 12rem 2rem 10rem;
    position: relative;
    overflow: hidden;
    animation: heroEntrance 1s ease-out;
}

@keyframes heroEntrance {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 2rem;
    text-shadow: 0 4px 12px rgba(0,0,0,0.3);
    animation: textFloat 3s ease-in-out infinite;
}

@keyframes textFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.hero-content p {
    font-size: 1.4rem;
    max-width: 800px;
    margin: 0 auto 3rem;
    font-weight: 300;
    opacity: 0.95;
}

.hero-cta {
    font-size: 1.2rem;
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    box-shadow: 0 8px 24px rgba(0,71,133,0.4);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
}

.hero-cta:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 32px rgba(0,71,133,0.5);
}


.key-services {
    padding: 6rem 2rem;
    background: var(--labcorp-light);
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    color: var(--labcorp-blue);
    margin-bottom: 4rem;
    position: relative;
}

.section-title::after {
    content: '';
    width: 80px;
    height: 4px;
    background: var(--labcorp-accent);
    position: absolute;
    bottom: -1.5rem;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.services-grid {
    gap: 3rem;
    max-width: 1400px;
}

.service-card {
    padding: 3rem 2rem;
    border: 2px solid rgba(0,71,133,0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 40px rgba(0,71,133,0.1);
}

.service-card i {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--labcorp-accent);
    transition: all 0.3s ease;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--labcorp-blue);
}

.service-card p {
    font-size: 1.1rem;
    color: var(--labcorp-text);
    opacity: 0.9;
}
/* ======================
   ENHANCED TRUST INDICATORS
   ====================== */
   .trust-indicators {
    padding: 8rem 2rem;
    background: linear-gradient(135deg, var(--labcorp-gradient-start), var(--labcorp-gradient-end));
    position: relative;
    z-index: 1;
}

.trust-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 4rem;
    position: relative;
}

.trust-item {
    padding: 3rem 2rem;
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.15);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.trust-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--labcorp-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.trust-item:hover {
    transform: translateY(-10px);
    background: rgba(255,255,255,0.15);
    box-shadow: 0 16px 48px rgba(0,71,133,0.2);
}

.trust-item:hover::before {
    transform: scaleX(1);
}

.trust-item h3 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: white;
    position: relative;
    display: inline-block;
    background: linear-gradient(to right, #fff 0%, #e6f2ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.trust-item p {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.95);
    max-width: 200px;
    margin: 0 auto;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.provider-section {
    padding: 8rem 2rem;
    background: linear-gradient(to right, #f9fbfd 50%, var(--labcorp-light) 50%);
}

.provider-content {
    background: white;
    border-radius: 20px;
    padding: 4rem;
    box-shadow: 0 12px 40px rgba(0,71,133,0.08);
    position: relative;
    overflow: hidden;
}

.provider-text {
    flex: 1;
    padding-right: 4rem;
}

.provider-text h2 {
    font-size: 2.4rem;
    color: var(--labcorp-blue);
    margin-bottom: 1.5rem;
}

.provider-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    color: var(--labcorp-text);
}

.provider-actions {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
}

.provider-image {
    flex: 0 0 45%;
    border-radius: 15px;
    overflow: hidden;
    transform: rotate(3deg);
    box-shadow: 20px 20px 60px rgba(0,71,133,0.1);
    transition: transform 0.3s ease;
}

.provider-image:hover {
    transform: rotate(1deg) scale(1.02);
}

.provider-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.secondary {
    background: transparent;
    border: 2px solid var(--labcorp-accent);
    color: var(--labcorp-accent);
    transition: all 0.3s ease;
}

.secondary:hover {
    background: rgba(0,71,133,0.05);
    border-color: var(--labcorp-blue);
    color: var(--labcorp-blue);
}
/* Responsive Adjustments */
@media (max-width: 1200px) {
    .hero-content h1 {
        font-size: 3.5rem;
    }
    
    .trust-content {
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .labcorp-hero {
        padding: 10rem 1.5rem 8rem;
        clip-path: polygon(0 0, 100% 0, 100% 95%, 0 100%);
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.2rem;
    }
    
    .trust-item {
        padding: 2rem 1.5rem;
    }
    
    .trust-item h3 {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-cta {
        width: 100%;
        padding: 1.2rem;
    }
}

/* Utility Classes */
.labcorp-button {
    background-color: var(--labcorp-accent);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-standard);
}

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

.modal-open {
    overflow: hidden;
}

/* Other UI Components */
.notification-badge {
    position: relative;
}

.notification-badge::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 8px;
    height: 8px;
    background-color: #f44336;
    border-radius: 50%;
}

.stat-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--labcorp-card-shadow);
    transition: var(--transition-standard);
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0,71,133,0.2);
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--labcorp-blue);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #777;
    font-size: 0.9rem;
}

/* Test Details Page Styles */
.test-details-container {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--labcorp-card-shadow);
    margin: 2rem 0;
}

.test-details-header {
    background: linear-gradient(120deg, var(--labcorp-blue), var(--labcorp-accent));
    color: white;
    padding: 2rem;
}

.test-identification {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.test-details-name {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.test-details-number {
    background: rgba(255,255,255,0.15);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
}

.test-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.test-cpt-badge {
    background: rgba(255,255,255,0.1);
    padding: 0.7rem 1.2rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.test-details-body {
    padding: 2rem;
}

.test-section {
    margin-bottom: 3rem;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.4rem;
    color: var(--labcorp-blue);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--labcorp-light);
}

.clinical-content {
    line-height: 1.8;
    color: var(--labcorp-text);
}

.test-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.info-card {
    background: var(--labcorp-light);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--labcorp-accent);
}

.info-card h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: var(--labcorp-blue);
}

.timeline {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.timeline-item {
    text-align: center;
}

.time {
    display: block;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--labcorp-accent);
}

.label {
    font-size: 0.9rem;
    color: #666;
}

.clinical-use-list {
    list-style: none;
    padding-left: 1.5rem;
}

.clinical-use-list li {
    position: relative;
    margin-bottom: 0.5rem;
}

.clinical-use-list li::before {
    content: "•";
    color: var(--labcorp-accent);
    position: absolute;
    left: -1.2rem;
}

.reference-links {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.reference-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--labcorp-blue);
    text-decoration: none;
    transition: var(--transition-standard);
}

.reference-link:hover {
    color: var(--labcorp-accent);
}

.related-tests {
    margin-top: 3rem;
    padding: 2rem;
    background: var(--labcorp-light);
}

.related-tests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.related-test-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    transition: var(--transition-standard);
    text-decoration: none;
    color: var(--labcorp-text);
    box-shadow: var(--labcorp-card-shadow);
}

.related-test-card:hover {
    transform: translateY(-3px);
}

.related-test-header {
    margin-bottom: 1rem;
}

.related-test-header .test-number {
    display: inline-block;
    background: var(--labcorp-blue-light);
    color: var(--labcorp-blue);
    padding: 0.3rem 0.7rem;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
}

/* Specimen Handling Table Format */
.specimen-table-container {
    margin-top: 1rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.specimen-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
}

.specimen-row {
    transition: background-color 0.2s ease;
}

.specimen-row:nth-child(even) {
    background-color: #f8fafc;
}

.specimen-row:hover {
    background-color: #f1f5f9;
}

.specimen-row th, 
.specimen-row td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.specimen-row th {
    width: 35%;
    font-weight: 600;
    color: #2c5282;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.specimen-row th i {
    color: #3182ce;
}

.specimen-row td {
    color: #4a5568;
}

.specimen-row:last-child th,
.specimen-row:last-child td {
    border-bottom: none;
}

@media (max-width: 640px) {
    .specimen-row th, 
    .specimen-row td {
        padding: 0.75rem;
    }
    
    .specimen-row th {
        width: 40%;
    }
}

/* Index Specific Styles */
.featured-categories {
    margin: 4rem 0;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,71,133,0.2);
}

.category-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--labcorp-card-shadow);
    transition: var(--transition-standard);
    perspective: 1000px;
    height: 200px; /* Set a fixed height */
    position: relative; /* Ensure proper positioning */
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    padding: 2rem;
    display: flex; /* Add flexbox for easier centering */
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.card-front {
    background-color: white;
    color: var(--labcorp-text);
}

.card-back {
    background-color: var(--labcorp-blue);
    color: white;
    transform: rotateY(180deg);
}

.category-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--labcorp-accent);
}

.category-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.category-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    text-decoration: none;
    font-weight: 600;
    margin-top: 1rem;
}

.category-link:hover {
    text-decoration: underline;
}

.quick-resources {
    margin: 4rem 0;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.resource-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--labcorp-card-shadow);
    transition: var(--transition-standard);
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,71,133,0.2);
}

.resource-card i {
    font-size: 2.5rem;
    color: var(--labcorp-accent);
    margin-bottom: 1rem;
}

.resource-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.resource-card p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1.5rem;
}

.resource-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--labcorp-accent);
    text-decoration: none;
    font-weight: 600;
}

.resource-link:hover {
    text-decoration: underline;
}

.search-loader {
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin: 2rem 0;
}

.loader-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--labcorp-accent);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.recent-searches {
    margin: 4rem 0;
}

.searches-container {
    margin-top: 2rem;
}

.loading-indicator {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
}

/* Home Page Styles */
.labcorp-hero {
    background: linear-gradient(rgba(0, 71, 133, 0.9), rgba(0, 90, 158, 0.9)),
                url('/static/img/lab-background.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 8rem 2rem;
    text-align: center;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 2rem auto;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--labcorp-card-shadow);
    transition: var(--transition-standard);
}

.trust-indicators {
    background: var(--labcorp-blue);
    color: white;
    padding: 4rem 2rem;
}

.provider-section {
    padding: 4rem 2rem;
}

.provider-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 3rem;
}

.secondary {
    background: transparent;
    border: 2px solid var(--labcorp-accent);
    color: var(--labcorp-accent);
}

/* Complete Enhanced LabCorp Test Details CSS */
/* Main Container */
.test-detail-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

/* Hero Section */
.test-hero {
    background: linear-gradient(135deg, #1a365d, #2b6cb0);
    color: white;
    padding: 3rem 2rem;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
}

.hero-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.1));
}

.hero-content {
    position: relative;
    z-index: 1;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.back-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(-5px);
}

.hero-main {
    margin-top: 1.5rem;
}

.hero-main h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.external-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.external-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

/* Key Metrics */
/* Enhanced Key Metrics Section */
.key-metrics-section {
    margin: 2rem 0;
}

.metrics-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.metric-row {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.metric-row:last-child {
    border-bottom: none;
}

.metric-row:hover {
    background-color: #f9fbff;
}

.metric-icon-container {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 90px;
    position: relative;
}

.metric-icon-container::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: rgba(0, 0, 0, 0.05);
}

.metric-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.turnaround-row .metric-icon {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
}

.methodology-row .metric-icon {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
    color: white;
}

.metric-row:hover .metric-icon {
    transform: scale(1.1) rotate(5deg);
}

.metric-content {
    flex: 1;
    padding: 1.5rem;
    position: relative;
}

.metric-content h3 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6c757d;
    margin: 0 0 0.5rem 0;
    font-weight: 600;
}

.metric-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 0.75rem 0;
}

/* Turnaround time specific styling */
.metric-progress {
    height: 6px;
    background: #eaecef;
    border-radius: 3px;
    overflow: hidden;
    margin-top: 0.5rem;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(to right, #3498db, #2980b9);
    border-radius: 3px;
    position: relative;
    overflow: hidden;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0) 0%, 
        rgba(255, 255, 255, 0.2) 50%, 
        rgba(255, 255, 255, 0) 100%);
    animation: shine 2s infinite linear;
}

/* Methodology specific styling */
.methodology-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.method-tag {
    padding: 0.3rem 0.7rem;
    background: rgba(155, 89, 182, 0.1);
    color: #8e44ad;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: all 0.2s ease;
}

.method-tag:hover {
    background: rgba(155, 89, 182, 0.2);
    transform: translateY(-2px);
}

/* Animations */
@keyframes shine {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .metric-row {
        flex-direction: column;
    }
    
    .metric-icon-container {
        width: 100%;
        padding: 1rem;
    }
    
    .metric-icon-container::after {
        display: none;
    }
    
    .metric-content {
        padding: 1rem;
    }
}

/* Sections */
section {
    margin: 2rem 0;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

section h2 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c5282;
    margin-bottom: 1.5rem;
}

section h2 i {
    color: #3182ce;
}



/* Technical Grid */
.technical-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.technical-card {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.technical-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.technical-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #2c5282;
}

.technical-card p {
    color: #4a5568;
    font-size: 1rem;
}

/* Container styling */
.filters-container {
    background-color: #f4f3f3;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  }
 
  .filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
  }
 
  .filters-header h3 {
    font-size: 1.3rem;
    margin: 0;
    color: #202020;
    font-weight: 600;
  }
 
  /* Filter panel styling */
  .filters-panel {
    padding-top: 12px;
  }
 
  .filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
  }
 
  .filter-group {
    margin-bottom: 16px;
  }
 
  .filter-group h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #495057;
  }
 
 
  /* Action buttons styling */
  .filter-actions {
    display: flex;
    justify-content: flex-start;
    margin-top: 16px;
  }
 
  .reset-filters-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background-color: #f1f3f5;
    color: #495057;
    border: 1px solid #ced4da;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
  }
 
  .reset-filters-btn:hover {
    background-color: #e9ecef;
  }
 
  /* Toggle filters button styling */
  .toggle-filters {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #004785;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 10px 16px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.2s;
  }
 
  .toggle-filters:hover {
    background-color: #002761;
  }
 
  /* Apply and Clear buttons (from second image) */
  .filter-actions-row {
    display: flex;
    gap: 8px;
    margin-top: 20px;
  }
 
  .apply-filters-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #004785;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 10px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
  }
 
  .clear-filters-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #004785;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 10px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
  }
 
  /* For date inputs */
  .date-input {
    width: 100%;
    padding: 10px 12px;
    font-size: 0.95rem;
    border: 1px solid #ced4da;
    border-radius: 6px;
    background-color: white;
    color: #495057;
  }
 
  /* Media query for responsive layout */
  @media (max-width: 768px) {
    .filter-grid {
      grid-template-columns: 1fr;
    }
  }
 
 
  /* Add this to your CSS */
select.filter-dropdown {
    position: relative;
    z-index: 100;
  }
 
  /* Modify the dropdown styling */
  .filter-dropdown option {
    max-height: 300px;
    overflow-y: auto;
   
  }
 
  /* To ensure the dropdown appears below instead of above */
  .filter-group {
    position: relative;
  }
 
  /* Fix the dropdown positioning */
  .filter-dropdown {
    position: relative;
    z-index: 10;
  }
 
  /* Override the browser's default dropdown behavior */
  @-moz-document url-prefix() {
    .filter-dropdown {
      overflow: hidden;
    }
   
    .filter-dropdown:hover {
      overflow: auto;
    }
  }
 
 
 
/* From Uiverse.io by ilkhoeri */
.dropdown {
    border: 1px solid #c1c2c5;
    border-radius: 12px;
    transition: all 300ms;
    display: flex;
    flex-direction: column;
    min-height: 58px;
    background-color: white;
    overflow: hidden;
    position: relative;
    inset-inline: auto;
    max-width: none;
    min-width: 298px;
    width:auto;
  }
  .dropdown input:where(:checked) ~ .list {
    opacity: 1;
    transform: translateY(-3rem) scale(1);
    transition: all 500ms ease;
    margin-top: 32px;
    padding-top: 4px;
    margin-bottom: -32px;
  }
  .dropdown input:where(:not(:checked)) ~ .list {
    opacity: 0;
    transform: translateY(3rem);
    margin-top: -100%;
    user-select: none;
    height: 0px;
    max-height: 0px;
    min-height: 0px;
    pointer-events: none;
    transition: all 500ms ease-out;
  }
  .trigger {
    cursor: pointer;
    list-style: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    font-weight: 600;
    color: inherit;
    width: 100%;
    display: flex;
    align-items: center;
    flex-flow: row;
    gap: 1rem;
    padding: 1rem;
    height: max-content;
    position: relative;
    z-index: 99;
    border-radius: inherit;
    background-color: white;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
  .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
  }
  .dropdown input:where(:checked) + .trigger {
    margin-bottom: 1rem;
  }
  .dropdown input:where(:checked) + .trigger:before {
    rotate: 90deg;
    transition-delay: 0ms;}
 
  .trigger:before,
  .trigger::after {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .trigger:before {
    content: "›";
    rotate: -90deg;
    width: 17px;
    height: 17px;
    color: #262626;
    border-radius: 2px;
    font-size: 26px;
    transition: all 350ms ease;
    transition-delay: 85ms;
  }
 
  .list {
    height: 100%;
    max-height: 20rem;
    width: calc(100% - calc(var(--w-scrollbar) / 2));
    display: grid;
    grid-auto-flow: row;
    overflow: hidden auto;
    gap: 0.5rem;
    padding: 0 0.5rem;
    margin-right: -8px;
    --w-scrollbar: 8px;
  }
  .listitem {
    cursor: pointer;
    padding: 6px 12px;
    line-height: 1.2;
    margin: 2px 0;
    transition: background-color 0.2s;
    height: 100%;
    width: calc(100% + calc(calc(var(--w-scrollbar) / 2) + var(--w-scrollbar)));
    list-style: none;
  }
 
  .list .listitem {
    transition: background-color 0.2s ease;
    padding: 8px 12px;
}
 
.list .listitem:hover {
    background-color: #a9cff3;
    cursor: pointer;
}
 
/* For the Turnaround Time dropdown which has explicit values */
#turnaround-filter .listitem:hover {
    background-color: #a9cff3;
}
/* Prevent overflow in turnaround dropdown */
#turnaround-filter .list {
    overflow-y: hidden; /* Remove scrollbar */
    max-height: none; /* Allow full expansion */
}
  .article {
    padding: 1rem;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    text-align: justify;
    width: 100%;
    border: 1px solid #c1c2c5;
    display: inline-block;
    background-color: white;
  }
 
  .webkit-scrollbar::-webkit-scrollbar {
    width: var(--w-scrollbar);
    height: var(--w-scrollbar);
    border-radius: 9999px;
  }
  .webkit-scrollbar::-webkit-scrollbar-track {
    background: #0000;
  }
  .webkit-scrollbar::-webkit-scrollbar-thumb {
    background: #0000;
    border-radius: 9999px;
  }
  .webkit-scrollbar:hover::-webkit-scrollbar-thumb {
    background: #c1c2c5;
  }