:root {
    --primary-color: #2F5233;
    --secondary-color: #B67C5C;
    --accent-color: #14B8A6;
    --background-color: #F8F9FA;
    --text-primary: #1F2937;
    --text-secondary: #6B7280;
    --border-light: #E5E7EB;
    --shadow-light: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-medium: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-large: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --glass-bg: rgba(255,255,255,0.1);
    --glass-border: rgba(255,255,255,0.2);
}

* {
    box-sizing: border-box;
}

.lab-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1.5rem 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
}

.lab-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1E3A24 100%);
    color: white;
    padding: 4rem 0;
    margin: -2rem -1.5rem 3rem -1.5rem;
    position: relative;
    overflow: hidden;
}

.lab-hero::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='grid' width='10' height='10' patternUnits='userSpaceOnUse'><path d='M 10 0 L 0 0 0 10' fill='none' stroke='rgba(255,255,255,0.05)' stroke-width='0.5'/></pattern></defs><rect width='100' height='100' fill='url(%23grid)'/></svg>");
    opacity: 0.3;
}

.lab-hero-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.lab-breadcrumb {
    font-size: 0.875rem;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.lab-breadcrumb a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.2s;
}

.lab-breadcrumb a:hover {
    color: white;
}

.lab-title {
    font-size: 3rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.025em;
}

.lab-subtitle {
    font-size: 1.25rem;
    margin-top: 0.5rem;
    opacity: 0.9;
    font-weight: 400;
}

.hero-text {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.lab-description-hero {
    font-size: 1.1rem;
    opacity: 0.85;
    max-width: 500px;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-top: 1.5rem;
}

.hero-stat {
    text-align: center;
    padding: 1rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    min-width: 100px;
}

.hero-stat-number {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--accent-color);
    line-height: 1;
}

.hero-stat-label {
    font-size: 0.85rem;
    opacity: 0.8;
    margin-top: 0.25rem;
    font-weight: 500;
}

.hero-visual {
    display: flex;
    justify-content: center;
}

.hero-graphic {
    width: 300px;
    height: 300px;
    background: var(--glass-bg);
    border: 2px solid var(--glass-border);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-graphic::before {
    content: '';
    position: absolute;
    inset: 0;
    background: conic-gradient(from 0deg, transparent, var(--accent-color), transparent);
    border-radius: inherit;
    padding: 2px;
    mask:
            linear-gradient(#fff, #fff) content-box,
            linear-gradient(#fff, #fff);

    mask-composite: exclude;
    animation: spin 4s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.hero-graphic-content {
    font-size: 4rem;
    filter: drop-shadow(0 0 10px rgba(0,0,0,0.25));
}

.lab-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.lab-main {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.lab-description {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-light);
}

.lab-description h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5rem;
}

.lab-description p {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1rem;
    text-align: justify;
}
.lab-description div {
    text-align: justify;
}

.equipment-section {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-light);
}

.equipment-section h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 1.5rem 0;
    text-align: center;
}

.equipment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.equipment-category {
    background: var(--background-color);
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid var(--border-light);
    transition: transform 0.2s, box-shadow 0.2s;
}

.equipment-category:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.equipment-category h3 {
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.equipment-category h3::before {
    content: '⚙️';
    font-size: 1.2rem;
}

.equipment-category.software h3::before {
    content: '💻';
}

.equipment-category.hardware h3::before {
    content: '🔧';
}

.equipment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.equipment-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
}

.equipment-list li:last-child {
    border-bottom: none;
}

.equipment-list li::before {
    content: '▸';
    color: var(--accent-color);
    font-weight: bold;
    margin-right: 0.5rem;
}

.contact-section {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-light);
    position: sticky;
    top: 2rem;
    height: fit-content;
}

.contact-section h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 1.5rem 0;
    text-align: center;
}

.contact-card {
    text-align: center;
    padding: 1.5rem;
    background: var(--background-color);
    border-radius: 12px;
    border: 1px solid var(--border-light);
}

.contact-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    font-weight: 600;
    box-shadow: var(--shadow-medium);
}

.contact-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0 0 0.25rem 0;
}

.contact-role {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0 0 0.5rem 0;
    font-weight: 500;
}

.contact-department {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0 0 1.5rem 0;
    font-style: italic;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    text-align: left;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    border-radius: 6px;
    transition: background-color 0.2s;
}

.contact-item:hover {
    background: rgba(47, 82, 51, 0.05);
}

.contact-icon {
    width: 20px;
    height: 20px;
    color: var(--accent-color);
    flex-shrink: 0;
}

.contact-text {
    font-size: 0.9rem;
    color: var(--text-primary);
}

.contact-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.contact-link:hover {
    color: var(--accent-color);
}

.btn-contact {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    width: 100%;
    justify-content: center;
}

.btn-contact:hover {
    background: #0F9F95;
    transform: translateY(-1px);
    box-shadow: var(--shadow-medium);
}

@media (max-width: 1024px) {
    .lab-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .lab-hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .contact-section {
        position: relative;
        top: auto;
    }
}

@media (max-width: 768px) {
    .lab-container {
        padding: 0 1rem;
    }

    .lab-hero {
        padding: 2rem 0;
        margin: -1rem -1rem 2rem -1rem;
    }

    .lab-title {
        font-size: 2rem;
    }

    .lab-subtitle {
        font-size: 1rem;
    }

    .hero-stats {
        justify-content: center;
    }

    .equipment-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .hero-graphic {
        width: 220px;
        height: 220px;
    }

    .lab-description,
    .equipment-section,
    .contact-section {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .lab-title {
        font-size: 1.75rem;
    }

    .contact-avatar {
        width: 100px;
        height: 100px;
        font-size: 2.5rem;
    }

    .hero-graphic {
        width: 180px;
        height: 180px;
    }
}

.custom-shadow {
    box-shadow: var(--shadow-medium);
}

.btn-floating {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    z-index: 999;
    transition: transform 0.3s, background-color 0.3s;
}

.btn-floating:hover {
    transform: scale(1.1);
    background-color: var(--secondary-color);
}

.animate-fade-in {
    animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── Partnership section ── */
.partnership-section {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.partnership-section h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5rem;
}

.ps-group h3 {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-secondary);
    margin: 0 0 0.75rem 0;
}

.ps-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.ps-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 500;
}

.ps-chip--org {
    background: rgba(47, 82, 51, 0.08);
    color: var(--primary-color);
    border: 1px solid rgba(47, 82, 51, 0.2);
}

.ps-chip--member {
    background: rgba(20, 184, 166, 0.08);
    color: #0d7a72;
    border: 1px solid rgba(20, 184, 166, 0.25);
}

.ps-chip--link {
    text-decoration: none;
    transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
    cursor: pointer;
}

.ps-chip--link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.12);
    filter: brightness(0.93);
}

.ps-team {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
}

.ps-person {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--background-color);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    transition: box-shadow 0.2s, transform 0.2s;
}

.ps-person:hover {
    box-shadow: var(--shadow-medium);
    transform: translateY(-1px);
}

.ps-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.ps-avatar--user {
    background: linear-gradient(135deg, var(--primary-color), #4a7d50);
}

.ps-avatar--instructor {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
}

.ps-person-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.ps-person-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ps-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.1rem 0.5rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.ps-badge--user {
    background: rgba(47, 82, 51, 0.1);
    color: var(--primary-color);
}

.ps-badge--instructor {
    background: rgba(79, 70, 229, 0.1);
    color: #4f46e5;
}

@media (max-width: 768px) {
    .ps-team {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .ps-team {
        grid-template-columns: 1fr;
    }
}
