/* Individual Product Cards - New Design */
.products-list {
    padding: 2rem 3rem 5rem;
    display: flex;
    flex-direction: column;
    gap: 3.5rem;
}

/* Adjust the first role section's products-list to have more top padding */
#clinics-products .products-list {
    padding-top: 3rem;
}

.product-container {
    margin-bottom: 0;
    position: relative;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 1.5rem;
    backdrop-filter: blur(15px);
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.4),
        0 0 80px rgba(14, 38, 65, 0.2) inset,
        0 0 15px rgba(255, 255, 255, 0.08) inset,
        0 5px 15px rgba(244, 208, 158, 0.05);
    overflow: visible;
    transform: translateZ(0); /* Hardware acceleration */
    will-change: transform; /* Optimize for animations */
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-container:hover {
    transform: translateY(-5px) translateZ(0);
    box-shadow: 
        0 25px 60px rgba(0, 0, 0, 0.45),
        0 0 80px rgba(14, 38, 65, 0.25) inset,
        0 0 15px rgba(255, 255, 255, 0.1) inset,
        0 8px 20px rgba(244, 208, 158, 0.08);
}

.product-container:last-child {
    margin-bottom: 0;
}

/* Add visual separator between products */
.product-container::after {
    content: '';
    position: absolute;
    bottom: -7rem;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.08);
}

/* Remove the separator from the last container */
.product-container:last-child::after {
    display: none;
}

.product-header {
    margin-bottom: 1.5rem;
    text-align: center;
    padding: 1rem 1rem;
    border-radius: 12px;
    position: relative;
    width: 100%;
    align-self: center;
}

.product-header-title {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.product-header-desc {
    font-size: 1.5rem;
    color: #F4D09E;
    font-weight: 300;
}

/* Feature toggle styles */
.feature-toggle-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 0 auto 1.25rem;
    max-width: 80%;
}

.feature-toggle-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.feature-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.feature-toggle-btn.active {
    background-color: #F4D09E;
    color: var(--primary-color);
    border-color: #F4D09E;
    font-weight: 500;
}

.product-card {
    display: flex;
    background-color: transparent;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: none;
    transform: translateZ(0); /* Hardware acceleration */
    will-change: transform; /* Optimize for animations */
    transition: transform 0.3s ease;
    border: none;
    position: relative;
    min-height: 40vh;
    padding: 0;
    margin-bottom: 0;
    align-items: center;
    gap: 2rem;
    width: 100%;
    align-self: center;
}

.product-card:hover {
    transform: translateY(-5px) translateZ(0);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
    border: none;
}

/* Remove the separator from the card since it's now on the container */
.product-card::after {
    display: none;
}

.product-media {
    flex: 0 0 35%;
    background-color: rgba(255, 255, 255, 0.03);
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    max-width: 350px;
    max-height: 350px;
    align-self: center;
}

.product-media img,
.product-media video {
    width: 100%;
    height: 100%;
    /* object-fit is now set dynamically in JavaScript */
    display: block;
    border-radius: 12px;
}

.product-content {
    padding: 1.5rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
    align-self: center;
}

.product-title {
    font-size: 1.8rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
    color: white;
}

.product-short-desc {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.product-tagline {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: white !important;
    font-weight: 400;
    line-height: 1.7;
}

.product-learn-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: auto;
    align-self: flex-start;
    background-color: var(--accent-color);
    color: white;
    padding: 0.5rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 400;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    margin-right: 10px;
    height: 38px;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    text-transform: capitalize;
    border: 1px solid transparent;
}

.product-learn-more:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    color: #F4D09E;
}

.product-view-pricing {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: auto;
    align-self: flex-start;
    background-color: var(--accent-color);
    color: white;
    padding: 0.5rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 400;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid transparent;
    height: 38px;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    text-transform: capitalize;
}

.product-view-pricing:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    color: #F4D09E;
}

/* Add a container for the buttons */
.product-buttons {
    display: flex;
    gap: 10px;
    margin-top: 1.5rem;
}

.media-placeholder {
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 1px;
    aspect-ratio: 1/1;
}

/* Responsive styles */
@media (max-width: 992px) {
    .products-list {
        gap: 10rem;
    }
    
    .product-container {
        margin-bottom: 0;
        padding: 1.5rem;
        overflow: visible; /* Ensure header remains visible */
    }
    
    .product-card {
        flex-direction: column;
        min-height: auto;
        padding: 0;
        width: 100%; /* Ensure full width */
    }
    
    .product-header-title {
        font-size: 2.2rem;
    }
    
    .product-header-desc {
        font-size: 1.3rem;
    }
    
    .feature-toggle-container {
        max-width: 90%;
        margin-bottom: 1rem;
    }
    
    .product-media {
        width: 100%;
        aspect-ratio: 1/1;
        flex: none;
        max-width: 300px;
        max-height: 300px;
        margin: 0 auto;
    }
    
    .product-content {
        padding: 2.5rem 1.5rem;
        width: 100%; /* Ensure full width */
    }
}

@media (max-width: 768px) {
    .products-list {
        padding: 1.5rem 1.5rem 3rem;
        gap: 8rem;
    }
    
    #clinics-products .products-list {
        padding-top: 2rem;
    }
    
    .product-container {
        margin-bottom: 0;
        padding: 1rem;
    }
    
    .product-header-title {
        font-size: 1.8rem;
    }
    
    .product-header-desc {
        font-size: 1.1rem;
    }
    
    .feature-toggle-container {
        max-width: 100%;
        gap: 0.5rem;
        margin-bottom: 0.75rem;
    }
    
    .feature-toggle-btn {
        font-size: 0.8rem;
        padding: 0.4rem 1rem;
    }
    
    .product-container::after {
        bottom: -4rem;
    }
    
    .product-content {
        padding: 1.5rem;
    }
    
    .product-media {
        max-width: 250px;
        max-height: 250px;
        height: auto;
        margin: 0 auto;
    }
}

/* Facts Card Styling */
.facts-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    padding: 1rem;
    justify-content: space-between;
    gap: 1rem;
    border-radius: 12px;
    background: transparent;
    box-shadow: none;
}

.fact-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    position: relative;
    overflow: hidden;
    flex: 1;
}

.fact-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background-color: #F4D09E;
    border-radius: 2px;
}

.fact-card:hover {
    transform: translateY(-2px);
    background-color: rgba(255, 255, 255, 0.15);
}

.fact-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #F4D09E;
    margin: 0;
    flex: 0 0 auto;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    min-width: 60px;
}

.fact-description {
    font-size: 0.9rem;
    color: white;
    text-align: left;
    flex: 1;
    font-weight: 400;
}

/* Center the description when title is empty */
.fact-card:has(.fact-title:empty) {
    justify-content: center;
}

.fact-card:has(.fact-title:empty) .fact-title {
    display: none;
}

.fact-card:has(.fact-title:empty) .fact-description {
    text-align: center;
    margin-left: 0;
    padding: 0 0.5rem;
}

@media (max-width: 992px) {
    .facts-container {
        padding: 0.85rem;
        gap: 0.85rem;
    }
    
    .fact-card {
        padding: 0.85rem 1rem;
    }
    
    .fact-title {
        font-size: 1.6rem;
        min-width: 50px;
    }
    
    .fact-description {
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    .facts-container {
        gap: 0.75rem;
        padding: 0.75rem;
    }
    
    .fact-card {
        padding: 0.75rem 0.75rem;
    }
    
    .fact-title {
        font-size: 1.4rem;
        min-width: 45px;
    }
    
    .fact-description {
        font-size: 0.8rem;
    }
}

/* Product Toggle for Pricing Section */
.product-toggle-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    gap: 1rem;
    margin: 0 auto 2rem;
    max-width: fit-content;
    background-color: rgba(0, 0, 0, 0.2);
    padding: 0.5rem;
    border-radius: 30px;
}

.product-toggle-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: 80px;
}

.product-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.product-toggle-btn.active {
    background-color: #F4D09E;
    color: var(--primary-color);
    border-color: #F4D09E;
    font-weight: 500;
}

@media (max-width: 992px) {
    .product-toggle-container {
        max-width: fit-content;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 768px) {
    .product-toggle-container {
        max-width: fit-content;
        gap: 0.5rem;
        margin-bottom: 1rem;
        padding: 0.3rem;
    }
    
    .product-toggle-btn {
        font-size: 0.8rem;
        padding: 0.4rem 1rem;
        min-width: 70px;
    }
}

/* Add styling for the pricing note */
.pricing-note {
    margin: 1.5rem auto 0;
    text-align: center;
    font-style: italic;
    color: #666;
    max-width: 900px;
    padding: 0 1rem;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Improve pricing card features list styling */
.pricing-card .features-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.pricing-card .features-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    line-height: 1.4;
    text-align: left;
}

.pricing-card .features-list li i {
    margin-right: 0.8rem;
    color: #F4D09E;
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.pricing-card .features-list li:last-child {
    margin-bottom: 0;
}

/* Pricing card styles */
.pricing-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
}

.pricing-card {
    flex: 1;
    min-width: 260px;
    max-width: 320px;
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.15);
}

/* Remove different styling for featured cards */
.pricing-card.featured {
    border-color: rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
    transform: none;
}

.pricing-card.featured:hover {
    transform: translateY(-5px);
}

.pricing-card-header {
    padding: 2rem 1.5rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.pricing-card-header h3 {
    margin: 0 0 1.5rem;
    font-weight: 500;
    font-size: 1.4rem;
    color: #fff;
}

.price {
    font-size: 2.5rem;
    color: #F4D09E;
    font-weight: 700;
    display: flex;
    align-items: baseline;
    justify-content: center;
}

.currency {
    font-size: 1.5rem;
    margin-right: 0.2rem;
    font-weight: 500;
}

.period {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    margin-left: 0.3rem;
    font-weight: 400;
}

.custom-price {
    font-size: 1.8rem;
    color: #F4D09E;
}

.pricing-card-body {
    padding: 2rem 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.pricing-card-footer {
    padding: 1.5rem;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.1);
}

.pricing-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 2rem;
    background-color: var(--accent-color);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 400;
    transition: all 0.3s ease;
    width: 100%;
    height: 38px;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    text-transform: capitalize;
    border: 1px solid transparent;
}

.pricing-button:hover {
    background-color: var(--accent-hover);
    color: #F4D09E;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Pricing card responsive styles */
@media (max-width: 1200px) {
    .pricing-cards {
        gap: 1.5rem;
    }
    
    .pricing-card {
        min-width: 240px;
        max-width: 280px;
    }
}

@media (max-width: 992px) {
    .pricing-cards {
        gap: 1rem;
    }
    
    .pricing-card {
        min-width: 220px;
        max-width: 260px;
    }
    
    .pricing-card-header {
        padding: 1.5rem 1rem;
    }
    
    .pricing-card-body {
        padding: 1.5rem 1rem;
    }
    
    .price {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .pricing-cards {
        flex-direction: column;
        align-items: center;
    }
    
    .pricing-card {
        width: 100%;
        max-width: 360px;
        margin-bottom: 1.5rem;
    }
    
    .pricing-card.featured {
        transform: none;
        order: 0; /* Remove the special ordering */
    }
    
    .pricing-card.featured:hover {
        transform: translateY(-5px);
    }
    
    .pricing-card-body {
        padding: 1.5rem 1rem;
    }
} 