/* Matricúlate Button Styling */
.enroll-container {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

.enroll-btn {
    background: var(--primary-green);
    color: white;
    padding: 18px 45px;
    border-radius: 50px;
    font-size: 20px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(var(--primary-green-rgb), 0.3);
    display: flex;
    align-items: center;
    gap: 12px;
}

.enroll-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 35px rgba(var(--primary-green-rgb), 0.4);
    background: var(--primary-green-hover);
}

.enroll-btn svg {
    transition: transform 0.3s ease;
}

.enroll-btn:hover svg {
    transform: translateX(5px);
}

/* Modal Styling */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 37, 64, 0.4);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-card {
    background: white;
    padding: 50px;
    border-radius: 35px;
    max-width: 600px;
    width: 90%;
    text-align: center;
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.2);
    transform: scale(0.9) translateY(20px);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .modal-card {
    transform: scale(1) translateY(0);
}

.modal-card h2 {
    font-size: 32px;
    color: var(--heading-color);
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.modal-card p {
    font-size: 18px;
    color: var(--text-color);
    margin-bottom: 40px;
    line-height: 1.6;
}

.modal-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.option-card {
    padding: 30px 20px;
    border: 2px solid #f0f4f8;
    border-radius: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    background: #fafcff;
}

.option-card:hover {
    border-color: var(--primary-green);
    background: #f0fff4;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(var(--primary-green-rgb), 0.05);
}

.option-card.highlight {
    border-color: var(--primary-green);
    background: rgba(var(--primary-green-rgb), 0.05);
}

.option-icon {
    font-size: 32px;
    background: white;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.option-title {
    font-weight: 700;
    color: var(--heading-color);
    font-size: 18px;
}

.option-desc {
    font-size: 14px;
    color: #697386;
}

.close-modal {
    position: absolute;
    top: 25px;
    right: 25px;
    background: #f0f4f8;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    transition: all 0.2s ease;
}

.close-modal:hover {
    background: #e2e8f0;
    color: var(--heading-color);
}

.coming-soon-badge {
    background: rgba(var(--primary-green-rgb), 0.1);
    color: var(--primary-green);
    font-size: 14px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 50px;
    margin-left: 15px;
    vertical-align: middle;
    border: 1px solid rgba(var(--primary-green-rgb), 0.2);
    display: inline-flex;
    align-items: center;
    letter-spacing: 0;
    text-transform: uppercase;
}

.partners-container {
    display: flex;
    gap: 20px;
    align-items: center;
    margin: 20px 0;
    flex-wrap: wrap;
}

.partner-logo {
    height: 80px;
    width: auto;
    object-fit: contain;
    filter: grayscale(0%);
    transition: all 0.3s ease;
    max-width: 150px;
}

.partner-logo:hover {
    transform: scale(1.05);
    filter: grayscale(0%);
}

/* High-Detail Itinerary Layout */
.itinerary-detail-container {
    padding-top: 50px;
}

.itinerary-section-detailed {
    position: sticky;
    top: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: #ffffff;
    overflow: visible;
    margin-bottom: 25vh;
    /* Adds scroll space between sheets */
    box-shadow: 0 -30px 60px rgba(0, 0, 0, 0.1);
    /* Slightly stronger shadow for depth */

    /* Initial state: rotated and scaled */
    transform: rotate(var(--section-rotation, 15deg)) scale(0.9);
    transform-origin: center center;
    opacity: 0.6;
    padding: 100px 0;
    /* Add padding for expanded content */
}

/* Z-Index sequence for stacking */
.itinerary-section-detailed:nth-child(1) {
    z-index: 1;
}

.itinerary-section-detailed:nth-child(2) {
    z-index: 2;
}

.itinerary-section-detailed:nth-child(3) {
    z-index: 3;
}

.itinerary-section-detailed:nth-child(4) {
    z-index: 4;
}

.itinerary-section-detailed:nth-child(5) {
    z-index: 5;
}


/* Alternate rotation */
.itinerary-section-detailed:nth-child(odd) {
    --section-rotation: 15deg;
}

.itinerary-section-detailed:nth-child(even) {
    --section-rotation: -15deg;
}

.itinerary-section-detailed:nth-child(even) {
    --section-rotation: -15deg;
}

.itinerary-section-detailed:nth-child(even) .detail-grid {
    direction: rtl;
}

.itinerary-section-detailed:nth-child(even) .detail-content {
    direction: ltr;
}

.detail-grid {
    max-width: 1600px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: center;
    padding: 0 20px;
}

.detail-media {
    position: relative;
    height: 500px;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
    background: #000;
    /* Dark background for videos */
}

/* Mute Toggle Button */
.mute-toggle-btn {
    position: absolute;
    bottom: 25px;
    right: 25px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: white;
    padding: 0;
}

.mute-toggle-btn:hover {
    background: rgba(var(--primary-green-rgb), 0.8);
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 20px rgba(var(--primary-green-rgb), 0.4);
}

.mute-toggle-btn svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.3s ease;
}

/* Show/hide icons based on mute state */
.mute-toggle-btn.unmuted .mute-icon {
    display: none;
}

.mute-toggle-btn.unmuted .unmute-icon {
    display: block;
}

.mute-toggle-btn:not(.unmuted) .unmute-icon {
    display: none;
}

.mute-toggle-btn:not(.unmuted) .mute-icon {
    display: block;
}

.detail-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.detail-content h2 {
    font-size: 56px;
    font-weight: 800;
    margin: 0 0 20px;
    color: var(--heading-color);
    letter-spacing: -2px;
    line-height: 1;
}

.detail-content .main-desc {
    font-size: 20px;
    line-height: 1.6;
    color: var(--text-color);
    margin-bottom: 40px;
}

.capsules-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.capsule-item {
    background: #f8f9fa;
    padding: 24px;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    position: relative;
    cursor: default;
}

.capsule-item.expandable {
    cursor: pointer;
}

.capsule-header-main {
    pointer-events: none;
    /* Let parent handle click */
}

/* Toggle Indicator */
.capsule-item.expandable::after {
    content: '+';
    position: absolute;
    right: 25px;
    bottom: 15px;
    width: 30px;
    height: 30px;
    background: rgba(var(--primary-green-rgb), 0.1);
    color: var(--primary-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    transition: all 0.3s ease;
    opacity: 1;
    transform: none;
}

.capsule-item.expandable.expanded::after {
    content: '−';
    background: var(--primary-green);
    color: white;
    transform: rotate(180deg);
}

.capsule-item.expandable:hover {
    background: white;
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(var(--primary-green-rgb), 0.1);
    border-color: rgba(var(--primary-green-rgb), 0.3);
}

/* Expansion Content */
.capsule-expansion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0, 1, 0, 1);
    width: 100%;
}

.capsule-item.expanded .capsule-expansion-content {
    max-height: 2000px;
    transition: max-height 1s ease-in;
    margin-top: 20px;
}

/* Module Accordion */
.module-accordion {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 15px;
    border-top: 1px solid #edf2f7;
}

.module-item {
    background: #ffffff;
    border: 1px solid #edf2f7;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.module-trigger {
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
    background: #fcfdfe;
}

.module-trigger:hover {
    background: #f7fafc;
}

.module-info-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.module-name {
    font-weight: 700;
    color: var(--heading-color);
    font-size: 15px;
}

.module-duration-badge {
    background: #e2e8f0;
    color: #4a5568;
    padding: 2px 10px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
}

.module-chevron {
    color: #cbd5e0;
    transition: transform 0.3s ease;
}

.module-item.active .module-chevron {
    transform: rotate(180deg);
    color: var(--primary-green);
}

.module-item.active {
    border-color: rgba(var(--primary-green-rgb), 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.module-details {
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease-out;
    padding: 0 20px;
    background: white;
}

.module-item.active .module-details {
    max-height: 1000px;
    padding: 15px 20px 20px;
}

.module-summary-text {
    font-size: 13px;
    color: var(--text-color);
    line-height: 1.6;
    margin: 0 0 15px 0;
    padding-bottom: 15px;
    border-bottom: 1px dashed #edf2f7;
}

/* Lesson List */
.lesson-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.lesson-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 13px;
    color: #4a5568;
    border-bottom: 1px solid #f7fafc;
}

.lesson-list li:last-child {
    border-bottom: none;
}

.lesson-name {
    font-weight: 500;
    position: relative;
    padding-left: 15px;
}

.lesson-name::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--primary-green);
    border-radius: 50%;
    opacity: 0.6;
}

.lesson-time {
    font-family: monospace;
    font-weight: 700;
    color: var(--primary-green);
}

.capsule-number {
    font-size: 10px;
    font-weight: 800;
    color: var(--primary-green);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
    display: block;
    opacity: 0.8;
}

.capsule-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: 12px;
    display: block;
    line-height: 1.3;
}

.capsule-desc {
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-color);
    margin: 0;
}

@media (max-width: 1024px) {
    .detail-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .detail-media {
        height: 400px;
    }

    .detail-content h2 {
        font-size: 44px;
    }
}

@media (max-width: 640px) {
    .capsules-container {
        grid-template-columns: 1fr;
    }
}

/* --- SKEUOMORPHIC SWITCH STYLES --- */
.skeuo-switch-container {
    position: relative;
    display: flex;
    background: #e0e5ec;
    border-radius: 50px;
    padding: 6px;
    margin: 40px auto;
    width: fit-content;
    box-shadow:
        inset 5px 5px 10px #a3b1c6,
        inset -5px -5px 10px #ffffff;
    z-index: 10;
}

.skeuo-slider {
    position: absolute;
    top: 6px;
    left: 6px;
    height: calc(100% - 12px);
    background: #e0e5ec;
    border-radius: 40px;
    z-index: 1;
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow:
        5px 5px 10px #a3b1c6,
        -5px -5px 10px #ffffff;
}

.skeuo-slider::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 40px;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.8), inset 0 0 5px rgba(255, 255, 255, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.skeuo-slider.glowing::after {
    opacity: 1;
}

.skeuo-option {
    position: relative;
    z-index: 2;
    background: transparent;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    color: #7b8ca0;
    cursor: pointer;
    transition: color 0.3s ease;
    border-radius: 40px;
}

.skeuo-option.active {
    color: #4a5568;
}

/* Tab Content Visibility */
.tab-content {
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.tab-content.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Content Styles */
.admission-requirements,
.evaluation-policy {
    background: #f8f9fa;
    border-radius: 20px;
    padding: 30px;
    margin-top: 30px;
    text-align: left;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.admission-requirements h3,
.evaluation-policy h3 {
    margin-top: 20px;
    margin-bottom: 10px;
    color: var(--primary-green);
}

.admission-requirements ul,
.evaluation-policy ul {
    list-style-type: none;
    padding-left: 0;
    margin-bottom: 20px;
}

.admission-requirements li,
.evaluation-policy li {
    padding-left: 20px;
    position: relative;
    margin-bottom: 8px;
    color: var(--text-color);
}

.admission-requirements li::before,
.evaluation-policy li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-green);
    font-weight: bold;
}

.contact-note {
    font-size: 0.9em;
    color: var(--text-color);
    margin-top: 30px;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

/* Hero Section */
.itinerary-hero {
    text-align: center;
    padding: 120px 20px 60px;
}

.itinerary-hero h1 {
    font-size: 64px;
    margin-bottom: 20px;
    letter-spacing: -3px;
    font-weight: 700;
}

.itinerary-hero p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 20px;
    color: var(--text-color);
}

/* Modal Helper Classes */
.option-icon.bg-soft-green {
    background: rgba(var(--primary-green-rgb), 0.1);
}

.text-green {
    color: var(--primary-green) !important;
}

.text-dark-blue {
    color: var(--heading-color) !important;
}

.margin-auto-bottom {
    margin: 0 auto 25px;
}

/* Evaluation Specific Layout */
.eval-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.eval-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.eval-card {
    background: white;
    padding: 24px;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    transition: transform 0.3s ease;
}

.eval-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-green);
}

.eval-card h4 {
    color: var(--primary-green);
    margin: 0 0 10px 0;
    font-size: 18px;
}

.eval-card p {
    margin: 0;
    font-size: 15px;
    color: var(--text-color) !important;
}

.cert-badge {
    margin-top: 30px;
    padding: 15px 25px;
    background: rgba(var(--primary-green-rgb), 0.08);
    border-left: 5px solid var(--primary-green);
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
}

.cert-badge strong {
    color: var(--primary-green);
}

/* =========================================
   RESPONSIVE STYLES FOR ITINERARIOS
   ========================================= */

@media (max-width: 1024px) {

    /* Detail grid to single column */
    .detail-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .detail-media {
        height: 400px;
    }

    .detail-content h2 {
        font-size: 44px;
    }

    .capsules-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {

    /* ===== HERO ===== */
    .itinerary-hero {
        padding: 100px 20px 40px;
    }

    .itinerary-hero h1 {
        font-size: 40px;
        letter-spacing: -2px;
    }

    .itinerary-hero p {
        font-size: 18px;
    }

    /* ===== DETAIL SECTIONS ===== */
    .itinerary-detail-container {
        padding-top: 30px;
        overflow-x: hidden;
        /* Strict vertical scroll */
        width: 100%;
    }

    .itinerary-section-detailed {
        position: relative !important;
        /* Remove sticky */
        height: auto !important;
        margin-bottom: 40px;
        transform: none !important;
        /* Remove rotation */
        opacity: 1 !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
        animation: none !important;
        width: 100%;
        overflow-x: hidden;
    }

    .detail-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 30px 20px;
    }

    .detail-media {
        height: 280px;
        border-radius: 20px;
    }

    .detail-content h2 {
        font-size: 36px;
        letter-spacing: -1px;
        margin-bottom: 15px;
    }

    .detail-content .main-desc {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .capsules-container {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .capsule-item {
        padding: 20px;
    }

    .capsule-number {
        font-size: 9px;
    }

    .capsule-title {
        font-size: 16px;
        margin-bottom: 10px;
    }

    .capsule-desc {
        font-size: 13px;
    }

    /* ===== SWITCH TABS ===== */
    .skeuo-switch-container {
        margin: 20px auto;
        padding: 4px;
        flex-wrap: wrap;
        /* Allow wrapping instead of horizontal scroll */
        justify-content: center;
        overflow-x: hidden;
        /* Prevent horizontal scroll */
        width: 100%;
        max-width: 100%;
        height: auto;
        border-radius: 20px;
    }

    .skeuo-option {
        padding: 8px 16px;
        font-size: 13px;
        flex: 0 1 auto;
        min-width: calc(50% - 10px);
        /* 2 items per row */
        white-space: normal;
        /* Allow text wrap */
        text-align: center;
    }

    .skeuo-slider {
        display: none;
        /* Hide slider on mobile wrap mode as it won't align well */
    }

    .skeuo-option.active {
        background: rgba(var(--primary-green-rgb), 0.1);
        border: 1px solid var(--primary-green);
    }

    /* Dynamic width based on number of options */
    .skeuo-switch-container[data-options="2"] .skeuo-slider {
        width: calc(50% - 6px);
    }

    .skeuo-switch-container[data-options="3"] .skeuo-slider {
        width: calc(33.333% - 6px);
    }

    .skeuo-switch-container[data-options="4"] .skeuo-slider {
        width: calc(25% - 6px);
    }

    /* ===== TAB CONTENT ===== */
    .admission-requirements,
    .evaluation-policy {
        padding: 25px;
        margin-top: 20px;
    }

    .admission-requirements h3,
    .evaluation-policy h3 {
        font-size: 20px;
    }

    .admission-requirements li,
    .evaluation-policy li {
        font-size: 14px;
        padding-left: 18px;
    }

    .contact-note {
        font-size: 13px;
    }

    /* ===== ENROLLMENT BUTTON ===== */
    .enroll-container {
        margin-top: 30px;
    }

    .enroll-btn {
        padding: 16px 35px;
        font-size: 18px;
    }

    /* ===== MODAL ===== */
    .modal-card {
        padding: 35px 25px;
        width: 92%;
        max-width: 500px;
    }

    .modal-card h2 {
        font-size: 26px;
        margin-bottom: 15px;
    }

    .modal-card p {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .modal-options {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .option-card {
        padding: 25px 18px;
    }

    .option-icon {
        font-size: 28px;
        width: 56px;
        height: 56px;
    }

    .option-title {
        font-size: 17px;
    }

    .option-desc {
        font-size: 13px;
    }

    .close-modal {
        top: 20px;
        right: 20px;
        width: 36px;
        height: 36px;
    }

    /* ===== PARTNERS ===== */
    .partners-container {
        justify-content: center;
    }

    .partner-logo {
        height: 60px;
        max-width: 120px;
    }

    .coming-soon-badge {
        font-size: 12px;
        padding: 5px 12px;
        margin-left: 10px;
    }
}

@media (max-width: 640px) {
    .itinerary-hero h1 {
        font-size: 32px;
    }

    .itinerary-hero p {
        font-size: 16px;
    }

    .detail-content h2 {
        font-size: 28px;
    }

    .detail-media {
        height: 240px;
    }

    .capsule-item {
        padding: 18px;
    }

    .capsule-title {
        font-size: 15px;
    }

    .enroll-btn {
        padding: 14px 30px;
        font-size: 16px;
    }

    .modal-card {
        padding: 30px 20px;
    }

    .modal-card h2 {
        font-size: 24px;
    }

    .option-card {
        padding: 20px 16px;
    }

    .partner-logo {
        height: 50px;
    }
}

@media (max-width: 425px) {
    .itinerary-hero {
        padding: 90px 15px 30px;
    }

    .itinerary-hero h1 {
        font-size: 28px;
    }

    .detail-content h2 {
        font-size: 24px;
    }

    .detail-media {
        height: 200px;
    }

    .skeuo-option {
        padding: 8px 16px;
        font-size: 13px;
    }
}

/* Laboratorios Tab Content */
.laboratories-info {
    background: #ffffff;
    border-radius: 24px;
    padding: 40px;
    margin-top: 30px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.04);
    text-align: left;
    animation: slideUp 0.5s ease forwards;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.lab-hero-card {
    display: flex;
    gap: 25px;
    align-items: center;
    margin-bottom: 35px;
    padding-bottom: 30px;
    border-bottom: 1px solid #f1f3f5;
}

.lab-icon {
    font-size: 44px;
    background: linear-gradient(135deg, rgba(var(--primary-green-rgb), 0.15), rgba(var(--primary-green-rgb), 0.05));
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 24px;
    border: 1px solid rgba(var(--primary-green-rgb), 0.1);
}

.lab-text h3 {
    margin: 0 0 8px 0;
    color: var(--heading-color);
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.lab-text p {
    margin: 0;
    color: var(--text-color);
    font-size: 18px;
    line-height: 1.5;
}

.lab-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.lab-feature {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.lab-feature:hover {
    background: white;
    border-color: rgba(var(--primary-green-rgb), 0.2);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.03);
    transform: translateY(-2px);
}

.feature-label {
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 700;
    color: #adb5bd;
    letter-spacing: 0.5px;
}

.feature-value {
    font-size: 17px;
    font-weight: 700;
    color: var(--heading-color);
}

/* Lab Tag in Capsules */
.lab-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary-green);
    color: white;
    font-size: 9px;
    padding: 5px 12px;
    border-radius: 50px;
    font-weight: 800;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(var(--primary-green-rgb), 0.3);
    letter-spacing: 0.5px;
    z-index: 2;
}

.lab-tag::before {
    content: '';
    width: 5px;
    height: 5px;
    background: white;
    border-radius: 50%;
    animation: pulse-white 1.5s infinite;
}

@keyframes pulse-white {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    }

    70% {
        box-shadow: 0 0 0 6px rgba(255, 255, 255, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

@media (max-width: 640px) {
    .lab-features-grid {
        grid-template-columns: 1fr;
    }

    .lab-hero-card {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
}