/* Modern Services Section Styles - Unique Optometry */

/* Override existing services page styles with modern, uniform design */

.services-page-section {
    padding: 80px 0px 40px;
}

.services-page-section .services-title {
    margin-bottom: 60px;
}

/* Unified Service Block - Modern Card Design */
.service-block,
.service-block-two {
    position: relative;
    margin-bottom: 40px;
    transition: all 0.3s ease;
}

.service-block .inner-box,
.service-block-two .inner-box {
    position: relative;
    background-color: #ffffff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    border: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-wrap: wrap;
    min-height: 350px;
}

.service-block:hover .inner-box,
.service-block-two:hover .inner-box {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Image Column */
.service-block .inner-box .image-column,
.service-block-two .inner-box .image-column {
    position: relative;
    padding: 0px;
    overflow: hidden;
    flex: 0 0 50%;
    max-width: 50%;
}

/* Alternating layout for service-block-two */
.service-block-two .inner-box .image-column {
    order: 2;
}

.service-block-two .inner-box .content-column {
    order: 1;
}

.service-block .inner-box .image-column .image,
.service-block-two .inner-box .image-column .image {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 350px;
}

.service-block .inner-box .image-column .image::after,
.service-block-two .inner-box .image-column .image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.service-block:hover .inner-box .image-column .image::after,
.service-block-two:hover .inner-box .image-column .image::after {
    opacity: 1;
}

.service-block .inner-box .image-column .image img,
.service-block-two .inner-box .image-column .image img {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.service-block:hover .inner-box .image-column .image img,
.service-block-two:hover .inner-box .image-column .image img {
    transform: scale(1.03);
}

/* Content Column - Unified white background */
.service-block .inner-box .content-column,
.service-block-two .inner-box .content-column {
    position: relative;
    padding: 0px;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    flex: 0 0 50%;
    max-width: 50%;
}

.service-block .inner-box .content-column .inner-column,
.service-block-two .inner-box .content-column .inner-column {
    position: relative;
    padding: 35px 40px;
    width: 100%;
}

/* Heading - More compact and modern */
.service-block .inner-box .content-column .inner-column h2,
.service-block-two .inner-box .content-column .inner-column h2 {
    position: relative;
    color: #242424;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3em;
    padding-bottom: 10px;
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

.service-block:hover .inner-box .content-column .inner-column h2,
.service-block-two:hover .inner-box .content-column .inner-column h2 {
    color: #3B8B7A;
}

/* Minimal underline */
.service-block .inner-box .content-column .inner-column h2:after,
.service-block-two .inner-box .content-column .inner-column h2:after {
    position: absolute;
    content: '';
    left: 0px;
    bottom: 0px;
    width: 40px;
    height: 2px;
    background: #3B8B7A;
    transition: width 0.3s ease;
}

.service-block:hover .inner-box .content-column .inner-column h2:after,
.service-block-two:hover .inner-box .content-column .inner-column h2:after {
    width: 60px;
}

/* Text Content - Better readability */
.service-block .inner-box .content-column .inner-column .text,
.service-block-two .inner-box .content-column .inner-column .text {
    position: relative;
    color: #666666;
    font-size: 15px;
    line-height: 1.8em;
    margin-bottom: 18px;
}

/* Minimal Modern Button */
.service-block .inner-box .content-column .inner-column .theme-btn,
.service-block-two .inner-box .content-column .inner-column .theme-btn {
    position: relative;
    display: inline-block;
    padding: 10px 26px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #ffffff;
    background: #3B8B7A;
    border: none;
    border-radius: 3px;
    transition: all 0.3s ease;
    box-shadow: none;
    overflow: hidden;
}

.service-block .inner-box .content-column .inner-column .theme-btn::before,
.service-block-two .inner-box .content-column .inner-column .theme-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #c9a246;
    transition: opacity 0.3s ease;
    opacity: 0;
    z-index: -1;
}

.service-block .inner-box .content-column .inner-column .theme-btn:hover,
.service-block-two .inner-box .content-column .inner-column .theme-btn:hover {
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(217, 178, 86, 0.2);
}

.service-block .inner-box .content-column .inner-column .theme-btn:hover::before,
.service-block-two .inner-box .content-column .inner-column .theme-btn:hover::before {
    opacity: 1;
}

/* Responsive Design */
@media only screen and (max-width: 767px) {
    .services-page-section {
        padding: 60px 0px 20px;
    }
    
    .services-page-section .services-title {
        margin-bottom: 40px;
    }
    
    .services-page-section .services-title h2 {
        font-size: 36px;
    }
    
    .service-block,
    .service-block-two {
        margin-bottom: 30px;
    }
    
    .service-block .inner-box,
    .service-block-two .inner-box {
        min-height: auto;
    }
    
    .service-block .inner-box .image-column .image,
    .service-block-two .inner-box .image-column .image {
        height: 280px;
    }
    
    .service-block .inner-box .image-column,
    .service-block-two .inner-box .image-column {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .service-block .inner-box .content-column,
    .service-block-two .inner-box .content-column {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .service-block .inner-box .content-column .inner-column,
    .service-block-two .inner-box .content-column .inner-column {
        padding: 25px 25px;
    }
    
    .service-block .inner-box .content-column .inner-column h2,
    .service-block-two .inner-box .content-column .inner-column h2 {
        font-size: 24px;
        margin-bottom: 12px;
    }
}

@media only screen and (min-width: 768px) and (max-width: 991px) {
    .service-block .inner-box,
    .service-block-two .inner-box {
        min-height: 320px;
    }
    
    .service-block .inner-box .content-column .inner-column,
    .service-block-two .inner-box .content-column .inner-column {
        padding: 30px 30px;
    }
    
    .service-block .inner-box .image-column .image,
    .service-block-two .inner-box .image-column .image {
        height: 320px;
    }
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

