body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    color: #343a40; /* Explicit text color */
}

.training-page .training-hero {
    background: linear-gradient(135deg, #f0f4ff 0%, #ffffff 100%);
}

.training-page .hero-gallery {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.1);
}

.training-page .hero-gallery-main img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
}

.training-page .hero-gallery-thumbs {
    background: rgba(0,0,0,0.04);
}

.training-page .hero-gallery-thumbs .thumb {
    flex: 1;
    border: none;
    background: transparent;
    padding: 6px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.training-page .hero-gallery-thumbs .thumb img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
}

@media (max-width: 768px) {
    .training-page .hero-gallery-main img {
        height: 280px;
    }
    .training-page .hero-gallery-thumbs {
        flex-wrap: wrap;
    }
    .training-page .hero-gallery-thumbs .thumb img {
        height: 80px;
    }
    .training-page .gallery-card img {
        height: 200px;
    }
}

.training-page .hero-gallery-thumbs .thumb.active,
.training-page .hero-gallery-thumbs .thumb:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.training-page .highlight-card,
.training-page .session-card,
.training-page .testimonial-card,
.training-page .gallery-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
}

.training-page .highlight-card .icon-wrap,
.training-page .session-card .badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    font-size: 1.4rem;
}

.training-page .session-card ul li {
    margin-bottom: 0.5rem;
    color: #495057;
}

.training-page .testimonial-card {
    border: 1px solid rgba(0,0,0,0.05);
}

.training-page .testimonial-text {
    font-style: italic;
    color: #495057;
}

.training-page .gallery-card {
    position: relative;
    overflow: hidden;
}

.training-page .gallery-card img {
    border-radius: 12px;
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.training-page .gallery-card .gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.training-page .gallery-card:hover .gallery-overlay {
    opacity: 1;
}

.training-page .training-cta {
    background: linear-gradient(135deg, #0d6efd, #0046ad);
}

.main-image {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: 8px;
}

.product-gallery-container {
    position: relative;
}

.gallery-thumbnails {
    margin-top: 1rem;
}

.thumbnail-item {
    width: 100px;
    height: 100px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease-in-out;
}

.thumbnail-item.active, .thumbnail-item:hover {
    border-color: #007bff;
    transform: translateY(-2px);
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    z-index: 10;
    opacity: 0; /* Hidden by default */
    transition: opacity 0.3s ease;
}

.gallery-nav.prev-btn {
    left: 10px;
    border-radius: 5px 50% 50% 5px;
}

.gallery-nav.next-btn {
    right: 10px;
    border-radius: 50% 5px 5px 50%;
}

.product-gallery-container:hover .gallery-nav {
    opacity: 1; /* Show on hover */
}

.product-info .badge {
    font-size: 0.9em;
    padding: 0.5em 0.75em;
}

.key-features-section ul {
    padding-left: 20px;
}

.key-features-section li {
    margin-bottom: 8px;
    color: #495057; /* Explicit feature text color */
}

.key-features-section li i {
    margin-right: 10px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .main-image {
        height: 300px;
    }
    .thumbnail-item {
        width: 70px;
        height: 70px;
    }
    .gallery-nav {
        opacity: 1; /* Always show on smaller screens */
        padding: 8px 12px;
    }
}

.probe-hero {
    background: linear-gradient(135deg, #0066cc 0%, #004499 100%);
    color: white;
    padding: 0.45rem 0;
    position: relative;
    overflow: hidden;
}

.probe-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M0,50 Q25,25 50,50 T100,50 L100,100 L0,100 Z" fill="rgba(255,255,255,0.1)"/></svg>') repeat-x bottom;
    pointer-events: none;
}

.probe-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-banner,
.probe-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}

.hero-banner .hero-logo,
.probe-content .hero-logo {
    width: clamp(110px, 9vw, 150px);
    max-width: 150px;
    height: auto;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.2));
}

@media (max-width: 768px) {
    .hero-banner .hero-logo,
    .probe-content .hero-logo {
        width: clamp(120px, 34vw, 150px);
    }
}

.product-showcase {
    background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
    border: 2px solid #bae6fd;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 102, 204, 0.15);
    overflow: hidden;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.product-image-container {
    background: linear-gradient(45deg, #e0f2fe 0%, #bae6fd 50%, #f0f9ff 100%);
    padding: 3rem;
    min-height: 650px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.product-main-image {
    max-width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 102, 204, 0.3);
    border: 3px solid rgba(0, 102, 204, 0.2);
    position: relative;
    z-index: 2;
}

.session-card,
.testimonial-card {
    background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
    border: 1px solid #bae6fd;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 20px 40px rgba(0, 102, 204, 0.08);
}

.training-cta {
    background: linear-gradient(135deg, #0d6efd, #0046ad);
    border-top: 3px solid rgba(255,255,255,0.3);
}

.training-page .product-image-container {
    min-height: 420px;
    padding: 2.25rem;
}

.training-page .product-main-image {
    max-height: 340px;
}

.training-page .product-showcase {
    margin-top: 1.5rem;
}

.training-page .probe-hero {
    padding: 0.35rem 0;
}

.training-page .probe-content .hero-logo {
    width: clamp(110px, 9vw, 150px);
    max-width: 150px;
}

@media (max-width: 768px) {
    .training-page .probe-content .hero-logo {
        width: clamp(110px, 34vw, 150px);
    }
}

/* Training Session Cards */
.session-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 102, 204, 0.1);
    border: 2px solid #e0f2fe;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.session-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 102, 204, 0.15);
}

.session-header {
    padding: 1.5rem;
    background: linear-gradient(135deg, #0066cc 0%, #004499 100%);
}

.session-header .session-type {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    opacity: 0.95;
}

.session-header .session-date {
    font-size: 1.5rem;
    font-weight: 700;
}

.session-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.session-description {
    color: #495057;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.session-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
    flex: 1;
}

.session-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: #212529;
}

.session-features li i {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 102, 204, 0.1);
    font-size: 0.85rem;
    flex-shrink: 0;
}

.session-features li span {
    font-size: 0.95rem;
    font-weight: 500;
}

.session-footer {
    padding: 0 1.5rem 1.5rem;
}

.session-footer .btn {
    font-weight: 600;
    padding: 0.75rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.session-footer .btn:hover {
    transform: translateX(3px);
}

/* Color variations */
.session-header.bg-warning {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
}

.session-header.bg-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.session-features li i.text-warning {
    background: rgba(255, 193, 7, 0.15);
}

.session-features li i.text-success {
    background: rgba(40, 167, 69, 0.15);
}

@media (max-width: 768px) {
    .session-card {
        margin-bottom: 1.5rem;
    }
    
    .session-header {
        padding: 1.25rem;
    }
    
    .session-body {
        padding: 1.25rem;
    }
}

/* Training Equipment Showcase */
.training-equipment-showcase {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    max-width: 400px;
}

.training-equipment-showcase img {
    transition: transform 0.3s ease;
    width: 100%;
    height: auto;
}

.training-equipment-showcase:hover img {
    transform: scale(1.03);
}

.equipment-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: linear-gradient(135deg, #0066cc 0%, #004499 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.8rem;
    box-shadow: 0 6px 16px rgba(0, 102, 204, 0.3);
    z-index: 10;
}

@media (max-width: 992px) {
    .training-equipment-showcase {
        margin-bottom: 2rem;
        max-width: 100%;
    }
}