/* Modern Profil Lab Page Styles */
:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --secondary-color: #64748b;
    --accent-color: #f59e0b;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --text-muted: #94a3b8;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --border-light: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    --gradient-primary: linear-gradient(135deg, #105091 0%, #083d66 100%);
    --gradient-secondary: linear-gradient(135deg, #105091 0%, #083d66 100%);
    --border-radius: 1rem;
    --border-radius-sm: 0.5rem;
    --border-radius-lg: 1.5rem;
    --transition: all 0.3s ease;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
}

/* Global Styles */
.profil-lab-page {
    background: var(--bg-light);
    min-height: 100vh;
}

/* Ensure mobile toggle is always clickable on this page */
@media (max-width: 991px) {
    .mobile-toggle {
        z-index: 1040 !important;
        position: relative !important;
        pointer-events: auto !important;
    }
}

/* Hero Section */
.hero-section {
    background: var(--gradient-primary);
    color: white;
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 25% 25%, rgba(255,255,255,0.1) 1px, transparent 1px),
        radial-gradient(circle at 75% 75%, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 50px 50px;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 12px 20px;
    border-radius: 50px;
    font-size: var(--font-size-sm);
    font-weight: 600;
    margin-bottom: 30px;
    color: white;
}

.hero-badge svg {
    color: #10b981;
}

.hero-title {
    font-size: var(--font-size-4xl);
    font-weight: 800;
    margin-bottom: 25px;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hero-description {
    font-size: var(--font-size-xl);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin: 0 auto 3rem;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.hero-stat-item {
    text-align: center;
    padding: 1rem;
}

.hero-stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    display: block;
}

.hero-stat-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

/* Search & Filter Section */
.search-filter-section {
    background: #f8f9fa;
    padding: 2rem 0;
    border-bottom: 1px solid #e9ecef;
}

.search-container {
    max-width: 800px;
    margin: 0 auto;
}

.search-box {
    position: relative;
    margin-bottom: 1.5rem;
}

.search-input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    font-size: 1.1rem;
    border: 2px solid #e9ecef;
    border-radius: 50px;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #105091;
    box-shadow: 0 4px 20px rgba(16, 80, 145, 0.15);
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    font-size: 1.2rem;
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.filter-chip {
    background: white;
    border: 2px solid #e9ecef;
    color: #495057;
    padding: 0.5rem 1.25rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-chip:hover {
    background: #105091;
    border-color: #105091;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(16, 80, 145, 0.3);
}

.filter-chip.active {
    background: #105091;
    border-color: #105091;
    color: white;
}

.filter-chip i {
    font-size: 0.8rem;
}

/* Stats Section */
.stats-section {
    background: var(--gradient-primary);
    padding: 3rem 0;
    color: white;
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.stats-section .container {
    position: relative;
    z-index: 2;
}

.stats-item {
    text-align: center;
    padding: 1rem;
}

.stats-number {
    font-size: 3rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.stats-label {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

/* Labs Grid Section */
.labs-section {
    padding: 4rem 0;
    background: #ffffff;
}

.labs-section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.labs-section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.labs-section-title p {
    font-size: 1.1rem;
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto;
}

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

.lab-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    color: inherit;
    border: 1px solid rgba(16, 80, 145, 0.08);
    position: relative;
    display: block;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.lab-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(16, 80, 145, 0.02) 0%, rgba(8, 61, 102, 0.02) 100%);
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 1;
}

.lab-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 50px rgba(16, 80, 145, 0.15);
    text-decoration: none;
    color: inherit;
    border-color: rgba(16, 80, 145, 0.2);
    cursor: pointer;
}

.lab-card:hover::before {
    opacity: 1;
}

.lab-image {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.lab-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.lab-card:hover .lab-image img {
    transform: scale(1.08);
}

.lab-rating {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.95);
    color: #1e293b;
    padding: 0.4rem 0.7rem;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.lab-rating .star {
    color: #fbbf24;
    font-size: 0.75rem;
}

.lab-content {
    padding: 1.1rem;
    position: relative;
    z-index: 2;
}

.lab-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    letter-spacing: -0.25px;
}

.lab-location {
    color: #64748b;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
}

.lab-location i {
    color: #105091;
    font-size: 0.8rem;
}

.lab-description {
    color: #64748b;
    font-size: 0.8rem;
    line-height: 1.4;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.2rem;
}

.lab-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding: 0.75rem 0.5rem;
    background: linear-gradient(135deg, rgba(16, 80, 145, 0.05) 0%, rgba(8, 61, 102, 0.05) 100%);
    border: 1px solid rgba(16, 80, 145, 0.1);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
}

.lab-stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(135deg, #105091 0%, #083d66 100%);
    opacity: 0.7;
}

.lab-stat {
    text-align: center;
    flex: 1;
    padding: 0.25rem 0.1rem;
    position: relative;
    transition: all 0.2s ease;
    border-radius: 8px;
    cursor: pointer;
}

.lab-stat:hover {
    background: rgba(16, 80, 145, 0.08);
    transform: translateY(-1px);
}

.lab-stat:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 25%;
    right: 0;
    width: 1px;
    height: 50%;
    background: linear-gradient(to bottom, transparent, rgba(16, 80, 145, 0.2), transparent);
}

.lab-stat-number {
    font-size: 1.1rem;
    font-weight: 800;
    color: #105091;
    display: block;
    margin-bottom: 0.1rem;
    line-height: 1;
}

.lab-stat-label {
    font-size: 0.65rem;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.1;
}

.lab-services {
    margin: 0.75rem 0;
}

.lab-services h6 {
    font-size: 0.7rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.4rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.service-tag {
    background: linear-gradient(135deg, rgba(16, 80, 145, 0.08) 0%, rgba(8, 61, 102, 0.08) 100%);
    color: #475569;
    padding: 0.15rem 0.4rem;
    border-radius: 12px;
    font-size: 0.65rem;
    font-weight: 500;
    border: 1px solid rgba(16, 80, 145, 0.15);
    transition: all 0.2s ease;
}

.service-tag:hover {
    background: linear-gradient(135deg, #105091 0%, #083d66 100%);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(16, 80, 145, 0.2);
}

.lab-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 0.5rem;
    margin-top: 0.5rem;
    border-top: 1px solid #f1f5f9;
}


.view-detail-btn {
    background: linear-gradient(135deg, #105091 0%, #083d66 100%);
    color: white;
    border: none;
    padding: 0.35rem 0.75rem;
    border-radius: 16px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.25px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    box-shadow: 0 2px 8px rgba(16, 80, 145, 0.2);
    position: relative;
    overflow: hidden;
}

.view-detail-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.view-detail-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 30px rgba(16, 80, 145, 0.4);
    color: white;
    text-decoration: none;
}

.view-detail-btn:hover::before {
    left: 100%;
}

/* Section Styles */
.section {
    padding: 80px 0;
}

.section-header {
    margin-bottom: 50px;
}

.section-title {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
    line-height: 1.3;
}

.section-subtitle {
    font-size: var(--font-size-lg);
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

/* Content Wrapper */
.content-wrapper {
    padding: 0 20px;
}

/* Lab Info */
.lab-info .lead {
    font-size: var(--font-size-lg);
    line-height: 1.7;
    color: var(--text-dark);
    margin-bottom: 40px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    color: var(--text-dark);
    font-size: var(--font-size-base);
}

.contact-item svg {
    color: var(--primary-color);
    flex-shrink: 0;
}

/* Image Wrapper */
.image-wrapper {
    padding: 20px;
}

.image-wrapper img {
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.image-wrapper img:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

/* Statistics Cards */
.stat-card {
    background: white;
    padding: 40px 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    text-align: center;
    height: 100%;
    border: 1px solid var(--border-light);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: white;
}

.stat-content {
    text-align: center;
}

.stat-number {
    font-size: var(--font-size-4xl);
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 10px;
    line-height: 1;
}

.stat-label {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.stat-detail {
    color: var(--text-light);
    font-size: var(--font-size-sm);
}

/* Vision Mission Cards */
.vision-mission-card {
    background: white;
    padding: 40px 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    height: 100%;
    border: 1px solid var(--border-light);
}

.vision-mission-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    color: white;
}

.vision-mission-card h3 {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.vision-mission-card p {
    color: var(--text-light);
    line-height: 1.6;
    font-size: var(--font-size-base);
    margin: 0;
}

/* Certification Cards */
.certification-card {
    background: white;
    padding: 30px 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    text-align: center;
    height: 100%;
    border: 1px solid var(--border-light);
}

.certification-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.cert-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
}

.certification-card h4 {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
    line-height: 1.3;
}

.certification-card p {
    color: var(--text-light);
    font-size: var(--font-size-sm);
    margin-bottom: 10px;
    line-height: 1.4;
}

.certification-card small {
    color: var(--text-muted);
    font-weight: 600;
}

/* Equipment Cards */
.equipment-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    overflow: hidden;
    height: 100%;
    border: 1px solid var(--border-light);
}

.equipment-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.equipment-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.equipment-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.equipment-card:hover .equipment-image img {
    transform: scale(1.05);
}

.equipment-content {
    padding: 25px;
}

.equipment-content h5 {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
    line-height: 1.3;
}

.equipment-brand {
    color: var(--primary-color);
    font-weight: 600;
    font-size: var(--font-size-sm);
    margin-bottom: 15px;
}

.equipment-desc {
    color: var(--text-light);
    font-size: var(--font-size-sm);
    line-height: 1.5;
    margin-bottom: 20px;
}

.equipment-status {
    margin-top: auto;
}

.status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-good {
    background: #dcfce7;
    color: #166534;
}

.status-maintenance {
    background: #fef3c7;
    color: #92400e;
}

.status-repair {
    background: #fee2e2;
    color: #991b1b;
}

/* CTA Section */
.cta-section {
    background: var(--gradient-primary);
    color: white;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="cta-pattern" width="50" height="50" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23cta-pattern)"/></svg>');
}

.cta-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.cta-title {
    font-size: var(--font-size-3xl);
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.cta-description {
    font-size: var(--font-size-lg);
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn-modern {
    background: white;
    color: var(--primary-color);
    border: 2px solid white;
    padding: 15px 30px;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: var(--font-size-base);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.btn-modern:hover {
    background: transparent;
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline-primary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 15px 30px;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: var(--font-size-base);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.cta-section .btn-outline-primary {
    color: white;
    border-color: white;
}

.cta-section .btn-outline-primary:hover {
    background: white;
    color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-title {
        font-size: var(--font-size-3xl);
    }

    .hero-description {
        font-size: var(--font-size-lg);
    }

    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: var(--font-size-2xl);
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 80px 0 60px;
    }

    .hero-title {
        font-size: var(--font-size-2xl);
    }

    .hero-description {
        font-size: var(--font-size-base);
    }

    .section {
        padding: 50px 0;
    }

    .section-title {
        font-size: var(--font-size-xl);
    }

    .stat-card,
    .vision-mission-card,
    .certification-card {
        padding: 30px 20px;
    }

    .stat-icon,
    .card-icon {
        width: 60px;
        height: 60px;
    }

    .cert-icon {
        width: 50px;
        height: 50px;
    }

    .equipment-content {
        padding: 20px;
    }

    .contact-info {
        gap: 15px;
    }

    .contact-item {
        padding: 10px 0;
        font-size: var(--font-size-sm);
    }

    .cta-actions {
        flex-direction: column;
        align-items: center;
    }

    .cta-title {
        font-size: var(--font-size-2xl);
    }

    .cta-description {
        font-size: var(--font-size-base);
    }

    /* Marketplace specific responsive */
    .labs-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .filter-chips {
        justify-content: flex-start;
    }

    .hero-stats {
        gap: 2rem;
    }

    .hero-stat-number {
        font-size: 2rem;
    }

    .labs-section-title h2 {
        font-size: 2rem;
    }

    .lab-content {
        padding: 1.1rem;
    }

    .lab-title {
        font-size: 1.15rem;
    }

    .lab-stats {
        padding: 0.6rem;
    }

    .lab-stat-number {
        font-size: 0.9rem;
    }

    .lab-image {
        height: 160px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: var(--font-size-xl);
    }

    .section-title {
        font-size: var(--font-size-lg);
    }

    .stat-card,
    .vision-mission-card,
    .certification-card {
        padding: 25px 15px;
    }

    .equipment-content {
        padding: 15px;
    }

    .btn-modern,
    .btn-outline-primary {
        padding: 12px 20px;
        font-size: var(--font-size-sm);
    }

    .cta-section {
        padding: 60px 0;
    }

    /* Marketplace mobile responsive */
    .search-input {
        padding: 0.8rem 0.8rem 0.8rem 2.5rem;
        font-size: 1rem;
    }

    .labs-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .lab-card {
        margin: 0 0.5rem;
    }

    .hero-section {
        padding: 60px 0 40px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-stats {
        gap: 1rem;
        margin-top: 1.5rem;
    }

    .hero-stat-item {
        padding: 0.5rem;
    }

    .hero-stat-number {
        font-size: 1.8rem;
    }

    .hero-stat-label {
        font-size: 0.9rem;
    }

    /* Lab cards mobile */
    .lab-content {
        padding: 1rem;
    }

    .lab-title {
        font-size: 1.1rem;
    }

    .lab-image {
        height: 140px;
    }

    .lab-rating {
        top: 0.75rem;
        right: 0.75rem;
        padding: 0.3rem 0.5rem;
        font-size: 0.7rem;
    }

    .lab-rating .star {
        font-size: 0.65rem;
    }

    .lab-stats {
        padding: 0.6rem;
    }

    .lab-stat-number {
        font-size: 0.85rem;
    }

    .lab-stat-label {
        font-size: 0.65rem;
    }

    .service-tag {
        padding: 0.2rem 0.5rem;
        font-size: 0.65rem;
    }

    .view-detail-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.7rem;
        gap: 0.3rem;
    }

    .lab-footer {
        padding-top: 0.5rem;
    }
}

/* Skeleton Loading */
.skeleton-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(16, 80, 145, 0.08);
    animation: pulse 1.5s ease-in-out infinite;
}

.skeleton-image {
    height: 180px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.skeleton-content {
    padding: 1.25rem;
}

.skeleton-line {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
    margin-bottom: 0.75rem;
}

.skeleton-line.title {
    height: 20px;
    width: 80%;
}

.skeleton-line.location {
    height: 16px;
    width: 60%;
}

.skeleton-line.description {
    height: 14px;
    width: 100%;
}

.skeleton-line.description:last-of-type {
    width: 75%;
}

.skeleton-stats {
    display: flex;
    justify-content: space-between;
    padding: 0.8rem;
    background: #f8fafc;
    border-radius: 12px;
    margin: 1rem 0;
}

.skeleton-stat {
    text-align: center;
    flex: 1;
}

.skeleton-stat-number {
    height: 18px;
    width: 30px;
    margin: 0 auto 0.25rem;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
}

.skeleton-stat-label {
    height: 12px;
    width: 40px;
    margin: 0 auto;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
}

.skeleton-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-bottom: 1rem;
}

.skeleton-tag {
    height: 24px;
    width: 60px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 16px;
}

.skeleton-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 0.75rem;
    border-top: 1px solid #f1f5f9;
}

.skeleton-button {
    height: 32px;
    width: 100px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 20px;
}

/* Load More Button */
.load-more-section {
    padding: 2rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.load-more-btn {
    background: linear-gradient(135deg, #105091 0%, #083d66 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.25px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(16, 80, 145, 0.2);
}

.load-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 80, 145, 0.3);
}

.load-more-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.loading-spinner {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Animations */
@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

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

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.6s ease-out;
}

.slide-up {
    animation: slideUp 0.6s ease-out;
}

.scale-in {
    animation: scaleIn 0.4s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Loading States */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Print Styles */
@media print {
    .hero-section,
    .cta-section {
        background: white !important;
        color: var(--text-dark) !important;
    }

    .btn-modern,
    .btn-outline-primary {
        border: 1px solid var(--text-dark) !important;
        color: var(--text-dark) !important;
        background: white !important;
    }

    .stat-card,
    .vision-mission-card,
    .certification-card,
    .equipment-card {
        box-shadow: none !important;
        border: 1px solid var(--border-light) !important;
    }
}
