/* 
 Theme Name:   ai-child
 Theme URI:    
 Description:  
 Author:       
 Author URI:   
 Template:     ai-automation
 Version:      1.0

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

:root {
    --color-primary1: #034ea2 !important;
    --secondary: #ffdd00
}

.box-text h1 {
    color: #fff;
    text-transform: capitalize;
    font-size: 40px;
    font-weight: 700;
}

.box-text {
    position: absolute;
    bottom: auto;
    top: 50%;
    right: 20%;
    left: 20%;
    z-index: 99;
    text-align: center;
}

@media screen and (max-width: 767px) {
    .box-text {
        top: 20%;
        left: 5%;
        right: 5%;
    }
}

.header-img,
.single-page-img,
.external-div .box-image-page img,
.external-div {
    background-image: url(/images/hero-bg.webp) !important;
    background-size: cover;
    height: 400px;
    background-position: center;
    background-attachment: fixed;
}

section {
    padding: 40px 0;
}

section img {
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
    border-radius: 20px
}

.box {
    position: relative;
    overflow: hidden;
    padding: 2rem;
    border: 1px solid color-mix(in srgb, var(--color-primary1) 20%, transparent);
    border-radius: 1.25rem;
    background:
        linear-gradient(135deg, rgb(255 255 255 / 96%), rgb(255 255 255 / 88%)),
        var(--color-primary1);
    box-shadow:
        0 18px 45px rgb(3 78 162 / 18%),
        inset 0 1px 0 rgb(255 255 255 / 80%);
    color: var(--color-primary1);
    transition: transform 250ms ease, box-shadow 250ms ease;
    height: 100%;
}

.box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 45%;
    height: 5px;
    border-radius: 0 999px 999px 0;
    background: linear-gradient(90deg,
            var(--secondary),
            var(--color-primary1));
}

.box::after {
    content: "";
    position: absolute;
    right: -55px;
    bottom: -55px;
    width: 140px;
    aspect-ratio: 1;
    border: 18px solid rgb(255 221 0 / 28%);
    border-radius: 50%;
    pointer-events: none;
}

.box:hover {
    transform: translateY(-6px);
    box-shadow:
        0 25px 55px rgb(3 78 162 / 25%),
        0 0 0 3px rgb(255 221 0 / 30%);
}

.box>* {
    position: relative;
    z-index: 1;
}

section h2 {
    position: relative;
    width: fit-content;
    margin: 0 auto 2.5rem;
    padding: 0.5rem 1.5rem;
    color: var(--color-primary1);
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
}

section h2::before {
    content: "";
    position: absolute;
    inset: 50% 0 auto;
    z-index: -1;
    height: 25%;
    border-radius: 0.25rem;
    background: var(--secondary);
    transform: translateY(-10%) skewX(-12deg);
}

section h2::after {
    content: "✦";
    position: absolute;
    top: 50%;
    right: 0.5rem;
    color: var(--color-primary1);
    font-size: 0.75em;
    transform: translateY(-50%);
}

section h3 {
    margin: 0 0 1rem;
    padding-left: 0.85rem;
    border-left: 4px solid var(--secondary);
    color: var(--color-primary1);
    font-weight: 700;
    line-height: 1.35;
}

h1 {
    font-size: clamp(2rem, 4vw, 2.5rem) !important;
}

h2 {
    font-size: clamp(1.6rem, 3vw, 2rem) !important;
}

h3 {
    font-size: clamp(1.4rem, 3vw, 1.7rem) !important;
}