/* 
 Theme Name:   vw-child
 Theme URI:    
 Description:  
 Author:       
 Author URI:   
 Template:     vw-machine-learning
 Version:      1.0

 /* == Add your own styles below this line ==
--------------------------------------------*/

section {
    padding: 40px 0;
}

.hero {
    padding-top: 0;
}

section h2 {
    text-align: center;
}

.box-image .page-header h1 {
    font-size: 2.5rem;
}

@media (max-width: 768px) {
    .box-image .page-header h1 {
        font-size: 2rem;
    }

    section h2 {
        font-size: 1.75rem;
    }

    section h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .box-image .page-header h1 {
        font-size: 1.75rem;
    }

    section h2 {
        font-size: 1.5rem;
    }

    section h3 {
        font-size: 1.25rem;
    }
}

.faq h3 {
    color: #922B3E;
    margin-top: 30px;
    margin-bottom: 10px;
    cursor: default;
}

.faq p {
    color: #333333;
    line-height: 1.7;
    margin: 0;
    padding-left: 15px;
    border-left: 3px solid #CB2821;
}

.faq h3+p {
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .faq .container {
        padding: 25px;
    }

    .faq h2 {
        font-size: 26px;
    }

    .faq h3 {
        font-size: 18px;
    }

    .faq p {
        font-size: 15px;
    }
}

section img {
    outline: 3px solid #CB2821;
}


.box {
    position: relative;
    padding: 1rem;
    border-radius: 16px;
    background:
        linear-gradient(135deg,
            rgba(203, 40, 33, 0.95),
            rgba(146, 43, 62, 0.95));
    color: #ffffff;
    overflow: hidden;
    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.25);
    transition:
        transform 0.4s ease,
        box-shadow 0.4s ease;
    height: 100%;
}

/* Animated light layer */
.box::before {
    content: "";
    position: absolute;
    inset: -40%;
    background:
        radial-gradient(circle,
            rgba(255, 255, 255, 0.15),
            transparent 60%);
    animation: boxGlow 6s linear infinite;
    pointer-events: none;
}

/* Moving accent stripe */
.box::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(120deg,
            transparent 30%,
            rgba(141, 148, 141, 0.25),
            transparent 70%);
    animation: shine 4s ease-in-out infinite;
    pointer-events: none;
}

/* Hover interaction */
.box:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.35);
}

.box p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.box a {
    color: #000000 !important;
}

/* Animations */
@keyframes boxGlow {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes shine {
    0% {
        transform: translateX(-100%);
    }

    50% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}



.service-box {
    position: relative;
    padding: 1rem;
    border-radius: 14px;
    background: #ffffff;
    color: #000000;
    overflow: hidden;
    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.25);
    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease;
    height: 100%;
}

/* Vertical accent bar */
.service-box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(to bottom,
            #CB2821,
            #922B3E);
    transition: width 0.35s ease;
}

/* Diagonal animated overlay */
.service-box::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            transparent 35%,
            rgba(203, 40, 33, 0.25),
            rgba(146, 43, 62, 0.35),
            transparent 65%);
    transform: translateX(-100%);
    animation: serviceSweep 6s ease-in-out infinite;
    pointer-events: none;
}

/* Hover effect */
.service-box:hover {
    transform: translateY(-8px);
    box-shadow:
        0 22px 45px rgba(0, 0, 0, 0.35);
}

.service-box:hover::before {
    width: 100%;
    opacity: 0.15;
}

/* Typography */
.service-box h3 {
    position: relative;
    margin-bottom: 0.75rem;
    color: #CB2821;
}

.service-box p {
    position: relative;
    line-height: 1.6;
    color: rgba(0, 0, 0, 0.95);
}

/* Animation */
@keyframes serviceSweep {
    0% {
        transform: translateX(-120%);
    }

    50% {
        transform: translateX(120%);
    }

    100% {
        transform: translateX(-120%);
    }
}


.box-image .single-page-img {
    background-image: url("/wp-content/themes/vw-child/img/hero-bg.jpg") !important;
}