/* Light W3Uzman footer. Existing content, spacing and responsive grids stay intact. */
.qam-footer-box {
    --footer-ink: #192b42;
    --footer-muted: #536478;
    --footer-gold: #ffcc00;
    --footer-line: #ebdba0;
    color: var(--footer-ink);
    background: #fffdf7;
}
.qam-footer-box .w3-corporate-footer {
    --footer-icon: 22px;
    color: var(--footer-ink);
    background:
        radial-gradient(ellipse at 2% 0%, #ffcc0012, transparent 34%),
        radial-gradient(ellipse at 100% 100%, #ffcc0010, transparent 36%),
        linear-gradient(115deg, #fffdf7 0%, #ffffff 46%, #fffdf6 100%);
}
.qam-footer-box .w3-corporate-footer::before {
    background: linear-gradient(90deg, #ffcc0025, #e8cc65 28%, #e8cc65 72%, #ffcc0025);
}
.qam-footer-box .w3-corporate-footer::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image: radial-gradient(#c5a747 1px, transparent 1px);
    background-size: 18px 18px;
    mask-image: linear-gradient(90deg, #000, transparent 15%, transparent 85%, #000);
    opacity: .18;
}
.qam-footer-box .w3-footer-logo span,
.qam-footer-box .w3-footer-column h2,
.qam-footer-box .w3-footer-newsletter h2 {
    color: var(--footer-ink);
}
.qam-footer-box .w3-footer-logo b,
.qam-footer-box .w3-footer-logo svg {
    color: var(--footer-gold);
}
.qam-footer-box .w3-footer-logo small,
.qam-footer-box .w3-footer-brand > p,
.qam-footer-box .w3-footer-newsletter p,
.qam-footer-box .w3-footer-newsletter > small,
.qam-footer-box .w3-footer-copyright small {
    color: var(--footer-muted);
}
.qam-footer-box .w3-footer-column,
.qam-footer-box .w3-footer-brand .w3-footer-newsletter {
    border-color: var(--footer-line);
}
.qam-footer-box .w3-footer-column h2::after,
.qam-footer-box .w3-footer-newsletter::before {
    background: var(--footer-gold);
}
.qam-footer-box .w3-footer-tools ul::before {
    background: var(--footer-line);
}
.qam-footer-box .w3-footer-column a,
.qam-footer-box .w3-footer-column a:visited {
    color: #35475d;
}
.qam-footer-box .w3-footer-column a:hover,
.qam-footer-box .w3-footer-column a:focus-visible {
    color: #7f5b00;
    text-decoration: underline;
    text-decoration-color: #e0b600;
    text-underline-offset: 4px;
}
/* All link groups share the tools' restrained outlined icon boxes. */
.qam-footer-box .w3-footer-column:not(.w3-footer-tools) li > a {
    padding-left: 0;
    gap: 6px;
}
.qam-footer-box .w3-footer-tools li > a { gap: 6px; }
.qam-footer-box .w3-footer-column li > a > span:last-child { white-space: nowrap; }
.qam-footer-box .w3-footer-column:not(.w3-footer-tools) li > a > span:last-child {
    flex: 1;
    min-width: 0;
}
.qam-footer-box .w3-footer-column:not(.w3-footer-tools) li > a::before {
    content: none;
}
.qam-footer-box .w3-footer-tool-icon {
    border-radius: 6px;
    color: #58697b;
    border-color: #e7dcb9;
    background: linear-gradient(135deg, #ffffff, #fff8e4);
    box-shadow: inset 0 1px 0 #ffffff;
}
.qam-footer-box .w3-footer-column a:hover .w3-footer-tool-icon,
.qam-footer-box .w3-footer-column a:focus-visible .w3-footer-tool-icon {
    color: #856300;
    border-color: #d5b33c;
    background: #fff3c7;
}
.qam-footer-box .w3-corporate-footer .w3-footer-tools a.w3-footer-all-tools,
.qam-footer-box .w3-corporate-footer .w3-footer-tools a.w3-footer-all-tools:visited {
    color: #806000;
}
.qam-footer-box .w3-footer-all-tools > span {
    color: #735500;
    background: #fff0b8;
}
.qam-footer-box .w3-footer-newsletter-icon {
    color: #8d6900;
    border-color: #ead899;
    background: linear-gradient(135deg, #fff7d9, #fffdf5);
}
.qam-footer-box .w3-footer-newsletter-form {
    color: var(--footer-ink);
    border-color: #dfd5b5;
    background: #ffffff;
    box-shadow: 0 3px 14px #68520706;
}
.qam-footer-box .w3-footer-input-icon {
    color: #718094;
}
.qam-footer-box .w3-footer-newsletter-form input[type="email"] {
    color: var(--footer-ink);
    background: transparent;
    caret-color: var(--footer-ink);
}
.qam-footer-box .w3-footer-newsletter-form input::placeholder {
    color: #637287;
}
.qam-footer-box .w3-footer-newsletter-form button {
    color: #253145;
    border-color: #eec300;
    background: #ffcc00;
    box-shadow: none;
}
.qam-footer-box .w3-footer-newsletter-form button:hover {
    background: #ffda3c;
}
.qam-footer-box .w3-corporate-footer .w3-footer-socials a,
.qam-footer-box .w3-corporate-footer .w3-footer-socials a:visited {
    color: #3c5066;
    border-color: #e4d9b5;
    background: linear-gradient(135deg, #ffffff, #fff9e9);
}
.qam-footer-box .w3-corporate-footer .w3-footer-socials a:hover {
    color: #775800;
    border-color: #d3b34d;
    background: #fff2c5;
}
.qam-footer-box .w3-footer-bottom::before {
    background: #e7cd70;
}
.qam-footer-box .w3-footer-copyright {
    color: #45586e;
}
.qam-footer-box .w3-corporate-footer .w3-footer-legal a,
.qam-footer-box .w3-corporate-footer .w3-footer-legal a:visited {
    color: #45586e;
    border-left-color: var(--footer-line) !important;
}
.qam-footer-box .w3-corporate-footer .w3-footer-legal a:hover {
    color: #775800;
}
.qam-footer-box .w3-footer-credit-logo img {
    filter: brightness(0) saturate(100%) invert(16%) sepia(19%) saturate(1093%) hue-rotate(173deg) brightness(95%) contrast(90%);
}
.qam-footer-box a:focus-visible,
.qam-footer-box .w3-footer-newsletter-form button:focus-visible {
    outline-color: #ad8200;
}
@media (min-width: 801px) {
    .qam-footer-box .w3-footer-column:not(.w3-footer-tools) { padding-left: 10px; }
}
@media (max-width: 800px) {
    .qam-footer-box .w3-corporate-footer::after { opacity: .08; }
}
@media (max-width: 400px) {
    .qam-footer-box .w3-footer-tools li > a { font-size: 13px; }
}
@media (min-width: 1101px) {
    /* Anchor the middle separator to the full column, not just its link list. */
    .qam-footer-box .w3-footer-tools { position: relative; }
    .qam-footer-box .w3-footer-tools ul { position: static; }
    .qam-footer-box .w3-footer-tools ul::before {
        top: 51px;
        bottom: 0;
        left: calc(50% + var(--footer-pad) / 2);
    }
}
