.exam-services {
    padding: 6rem 2rem;
    background: linear-gradient(135deg, var(--secondary-cream) 0%, var(--primary-cream) 100%);
    position: relative;
    overflow: hidden;
}

.exam-services-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.background-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.03;
    filter: grayscale(100%);
}

.background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(245, 240, 225, 0.9) 0%, rgba(254, 251, 240, 0.95) 100%);
}

.services-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(212, 175, 55, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(212, 175, 55, 0.05) 0%, transparent 50%);
    background-size: 40% 40%;
}

.floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(212, 175, 55, 0.05) 100%);
    animation: floatShape 15s ease-in-out infinite;
}

.shape-1 {
    width: 120px;
    height: 120px;
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.shape-2 {
    width: 80px;
    height: 80px;
    top: 70%;
    left: 80%;
    animation-delay: 5s;
}

.shape-3 {
    width: 150px;
    height: 150px;
    top: 40%;
    left: 90%;
    animation-delay: 10s;
}

.exam-services-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.exam-services-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

.section-badge i {
    color: var(--accent-gold);
    font-size: 1.1rem;
}

.section-badge span {
    color: var(--accent-gold);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.header-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent-gold);
    line-height: 1;
    margin-bottom: 0.5rem;
    font-family: 'Poppins', sans-serif;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.services-navigation {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.nav-item {
    padding: 0.75rem 1.5rem;
    background: var(--white);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 50px;
    color: var(--text-dark);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.nav-item:hover {
    background: rgba(212, 175, 55, 0.1);
    transform: translateY(-2px);
}

.nav-item.active {
    background: var(--gold-gradient);
    color: var(--white);
    border-color: transparent;
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

/* Grid Layout for Desktop (3 columns) */
.exam-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-bottom: 4rem;
}

.service-box {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    border: 1px solid rgba(212, 175, 55, 0.1);
    opacity: 0;
    transform: translateY(30px);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.service-box.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.service-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gold-gradient);
    transform: scaleX(0);
    transition: var(--transition);
}

.service-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.service-box:hover::before {
    transform: scaleX(1);
}

.service-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--gold-gradient);
    color: var(--white);
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.service-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.service-icon {
    position: relative;
    width: 60px;
    height: 60px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition);
}

.service-box:hover .service-icon {
    background: var(--gold-gradient);
    transform: scale(1.1);
}

.service-icon i {
    color: var(--accent-gold);
    font-size: 1.5rem;
    transition: var(--transition);
    position: relative;
    z-index: 2;
}

.service-box:hover .service-icon i {
    color: var(--white);
}

.icon-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gold-gradient);
    border-radius: 15px;
    opacity: 0;
    transition: var(--transition);
}

.service-box:hover .icon-glow {
    opacity: 1;
}

.service-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.3;
    margin: 0;
    transition: var(--transition);
}

.service-box:hover .service-header h3 {
    color: var(--accent-gold);
}

.service-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.feature {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    transition: var(--transition);
}

.feature:hover {
    transform: translateX(5px);
}

.feature-icon {
    width: 20px;
    height: 20px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition);
}

.feature:hover .feature-icon {
    background: var(--gold-gradient);
}

.feature-icon i {
    color: var(--accent-gold);
    font-size: 0.7rem;
    transition: var(--transition);
}

.feature:hover .feature-icon i {
    color: var(--white);
}

.feature span {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.5;
}

.service-contact {
    background: rgba(212, 175, 55, 0.05);
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(212, 175, 55, 0.1);
    transition: var(--transition);
}

.service-box:hover .service-contact {
    background: rgba(212, 175, 55, 0.1);
    transform: translateY(-2px);
}

.contact-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.contact-info i {
    color: var(--accent-gold);
    font-size: 1rem;
}

.contact-info span {
    color: var(--text-dark);
    font-size: 0.9rem;
    font-weight: 500;
}

.service-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: #25D366;
    color: var(--white);
    padding: 1rem 1.5rem;
    border-radius: 15px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
    gap: 1rem;
}

.button-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: var(--transition);
}

.service-button:hover .button-glow {
    left: 100%;
}

.service-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.hover-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    transition: var(--transition);
    opacity: 0;
}

.service-box:hover .hover-glow {
    width: 300px;
    height: 300px;
    opacity: 1;
}

.exam-services-cta {
    background: var(--white);
    padding: 4rem 3rem;
    border-radius: 25px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    text-align: center;
    border: 1px solid rgba(212, 175, 55, 0.1);
    position: relative;
    overflow: hidden;
}

.exam-services-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gold-gradient);
}

.cta-icon {
    width: 80px;
    height: 80px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: var(--transition);
}

.cta-icon i {
    color: var(--accent-gold);
    font-size: 2rem;
}

.cta-content h3 {
    font-size: 2.2rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-weight: 700;
}

.cta-content p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.cta-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.cta-button.primary {
    background: var(--gold-gradient);
    color: var(--white);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
}

.cta-button.secondary {
    background: transparent;
    color: var(--accent-gold);
    border: 2px solid rgba(212, 175, 55, 0.3);
}

.cta-button.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.4);
    gap: 1rem;
}

.cta-button.primary:hover .button-glow {
    left: 100%;
}

.cta-button.secondary:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: var(--accent-gold);
    transform: translateY(-3px);
    gap: 1rem;
}

/* Tablet Layout (2 columns) */
@media screen and (max-width: 1024px) {
    .exam-services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .service-box {
        padding: 2.2rem 1.8rem;
    }
    
    .header-stats {
        gap: 2rem;
    }
    
    .stat-number {
        font-size: 2.2rem;
    }
}

/* Mobile Layout (Horizontal Scroll) */
@media screen and (max-width: 768px) {
    .exam-services {
        padding: 4rem 1.5rem;
    }
    
    .exam-services-grid {
        display: flex;
        overflow-x: auto;
        gap: 1.5rem;
        padding: 1rem 0.5rem 2rem;
        margin-bottom: 2rem;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: var(--accent-gold) rgba(212, 175, 55, 0.1);
    }
    
    .exam-services-grid::-webkit-scrollbar {
        height: 8px;
    }
    
    .exam-services-grid::-webkit-scrollbar-track {
        background: rgba(212, 175, 55, 0.1);
        border-radius: 10px;
    }
    
    .exam-services-grid::-webkit-scrollbar-thumb {
        background: var(--accent-gold);
        border-radius: 10px;
    }
    
    .service-box {
        flex: 0 0 320px;
        scroll-snap-align: start;
        opacity: 1;
        transform: none;
        padding: 2rem 1.5rem;
    }
    
    .service-box:hover {
        transform: translateY(-5px);
    }
    
    .services-navigation {
        overflow-x: auto;
        padding-bottom: 1rem;
        justify-content: flex-start;
    }
    
    .nav-item {
        flex-shrink: 0;
    }
    
    .exam-services-cta {
        padding: 3rem 2rem;
    }
    
    .cta-content h3 {
        font-size: 1.8rem;
    }
    
    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-button {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .header-stats {
        gap: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

/* Small Mobile Optimization */
@media screen and (max-width: 480px) {
    .service-box {
        flex: 0 0 280px;
        padding: 1.8rem 1.5rem;
    }
    
    .service-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .service-icon {
        align-self: center;
    }
    
    .service-header h3 {
        font-size: 1.2rem;
    }
    
    .feature span {
        font-size: 0.85rem;
    }
    
    .contact-info span {
        font-size: 0.85rem;
    }
    
    .exam-services-cta {
        padding: 2.5rem 1.5rem;
    }
    
    .cta-content h3 {
        font-size: 1.6rem;
    }
    
    .cta-content p {
        font-size: 1.1rem;
    }
}

/* Enhanced Mobile Scroll Indicators */
.mobile-scroll-hint {
    display: none;
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: 1rem;
    animation: bounceHint 2s infinite;
}

.mobile-scroll-hint i {
    color: var(--accent-gold);
    margin: 0 0.5rem;
}

@keyframes bounceHint {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(0);
    }
    40% {
        transform: translateX(10px);
    }
    60% {
        transform: translateX(5px);
    }
}

@keyframes floatShape {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    33% {
        transform: translateY(-20px) rotate(120deg);
    }
    66% {
        transform: translateY(10px) rotate(240deg);
    }
}

@media screen and (max-width: 768px) {
    .mobile-scroll-hint {
        display: block;
    }
}

/* Filter Animation */
.service-box {
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.service-box.hidden {
    opacity: 0;
    transform: scale(0.8);
    position: absolute;
    pointer-events: none;
}