/* Scoped to the club's policy banner; membership and tournament styles stay independent. */
.child-safety-banner {
    position: relative;
    overflow: hidden;
    background: #17B3D4;
}

#keeping-kids-safe .child-safety-inner {
    position: static;
    display: flex;
    align-items: stretch;
}

.child-safety-content {
    position: relative;
    z-index: 1;
    flex: 0 0 53%;
    padding: 70px 30px 90px 0;
}

.child-safety-banner h2 {
    font-family: 'Fredoka', sans-serif;
    margin: 0 0 10px;
    color: #fff;
    font-size: 40px;
    font-weight: 500;
    font-style: normal;
    line-height: 1.2;
}

.child-safety-banner p {
    margin: 0 0 22px;
    color: #fff;
    font-size: 20px;
    line-height: 1.5;

}

.child-safety-documents {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.child-safety-documents a {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 14px 20px;
    border: 1px solid rgba(255, 255, 255, .85);
    border-radius: 8px;
    background: #E8F7FB;
    color: #125268;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}

.child-safety-documents a:hover {
    background: #2B3842;
    border-color: #2B3842;
    color: #fff;
}

.child-safety-documents a:focus,
.child-safety-documents a:focus-visible {
    /* The legacy theme globally suppresses focus outline styles. */
    outline: 3px solid #18242E !important;
    outline-offset: 3px;
    background: #2B3842;
    border-color: #2B3842;
    color: #fff;
}

.child-safety-documents a span { flex: 1; }
.child-safety-documents a i { flex: 0 0 auto; }

.child-safety-artwork {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 49%;
}

.child-safety-artwork img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center bottom;
}

.child-safety-artwork::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(90deg, #17B3D4 0%, rgba(23, 179, 212, .95) 8%, rgba(23, 179, 212, .6) 22%, transparent 42%);
}

@media (max-width: 991px) {
    .child-safety-inner { flex-direction: column; }
    .child-safety-content { flex: auto; padding: 55px 0; }
    /* Outside the text container so the illustration spans the entire banner at every stacked width. */
    .child-safety-artwork { position: relative; top: auto; right: auto; bottom: auto; width: 100%; }
    .child-safety-artwork img { position: static; display: block; height: auto; }
    .child-safety-artwork::after {
        background: linear-gradient(180deg, #17B3D4 0%, rgba(23, 179, 212, .9) 4%, rgba(23, 179, 212, .4) 15%, transparent 28%);
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    /* Bring the treetops behind the links on tablets without changing the phone composition. */
    .child-safety-artwork { margin-top: -80px; }
}

@media (max-width: 479px) {
    .child-safety-banner h2 { font-size: 28px; }
    .child-safety-banner p { font-size: 18px; }
    .child-safety-documents { grid-template-columns: 1fr; }
}
