/* ============================================================
   Live-site footer replica (Blocksy theme footer, a-iip.com)
   Ported 1:1 from the live WordPress footer so the preview
   footer is pixel-identical. All values measured from the
   rendered live site (a-iip.com).
   ============================================================ */

.ct-footer {
    background-color: #050709;
    color: #f4f4f5;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    font-size: 16px;
    font-weight: 400;
    line-height: 1.65;
}

/* ---------- rows ---------- */
.ct-footer [data-row] {
    border-top: 0;
    border-bottom: 0;
}
.ct-footer [data-row="middle"] {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.ct-footer [data-row="bottom"] {
    background-color: #b08c5d;
}

.ct-footer [data-row] > div {
    display: grid;
    grid-template-columns: var(--ct-grid, repeat(1, 1fr));
    grid-column-gap: var(--ct-cgap, 0px);
    grid-row-gap: var(--ct-cgap, 0px);
    padding-block: var(--ct-cpad, 0px);
}

/* middle row: 4 columns on desktop */
.ct-footer [data-row="middle"] > div {
    --ct-grid: repeat(4, 1fr);
    --ct-cgap: 30px;
    --ct-cpad: 13px;
    width: calc(100vw - 60px);
    margin-inline: auto;
}
@media (max-width: 999.98px) {
    .ct-footer [data-row="middle"] > div {
        --ct-grid: repeat(2, 1fr);
        width: 94vw;
    }
}
@media (max-width: 689.98px) {
    .ct-footer [data-row="middle"] > div {
        --ct-grid: repeat(1, 1fr);
    }
}

/* bottom row: socials + copyright */
.ct-footer [data-row="bottom"] > div {
    --ct-grid: repeat(2, 1fr);
    --ct-cgap: 50px;
    --ct-cpad: 25px;
    width: min(100%, 94vw);
    max-width: 1290px;
    margin-inline: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
@media (max-width: 999.98px) {
    .ct-footer [data-row="bottom"] > div {
        --ct-grid: repeat(1, 1fr);
        --ct-cgap: 13px;
    }
}
@media (max-width: 689.98px) {
    .ct-footer [data-row="bottom"] > div {
        --ct-cpad: 15px;
    }
}

/* ---------- columns ---------- */
.ct-footer [data-column] {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.ct-footer [data-column="socials"] {
    align-items: flex-start;
    justify-content: center;
}
.ct-footer [data-column="copyright"] {
    justify-content: center;
}
.ct-footer-copyright {
    text-align: right;
}
@media (max-width: 999.98px) {
    .ct-footer [data-column="socials"] {
        align-items: center;
    }
    .ct-footer-copyright {
        text-align: center;
    }
}

/* ---------- widgets ---------- */
.ct-footer .widget-title {
    font-family: "Merriweather", Georgia, serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
    color: #efbd78;
    margin: 0 0 14.8px;
}

.ct-footer .textwidget {
    font-size: 16px;
    line-height: 1.65;
}
.ct-footer .textwidget p {
    margin: 0 0 24px;
}
.ct-footer .textwidget p:last-child {
    margin-bottom: 0;
}
.ct-footer .textwidget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.ct-footer .textwidget li {
    margin: 0;
    padding: 0;
}
.ct-footer .ct-widget a {
    color: #ffffff;
    text-decoration: none;
}
.ct-footer .ct-widget a:hover {
    color: #5d841a;
}
.ct-footer .textwidget img {
    max-width: 100%;
    height: auto;
}

/* ---------- copyright ---------- */
.ct-footer-copyright {
    color: #000000;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.3;
}
.ct-footer-copyright p {
    margin: 0;
}

/* ---------- socials ---------- */
.ct-footer-socials .ct-social-box {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    justify-content: flex-start;
}
@media (max-width: 999.98px) {
    .ct-footer-socials .ct-social-box {
        justify-content: center;
    }
}
.ct-social-box a {
    display: flex;
    align-items: center;
}
.ct-icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 37.5px;
    height: 37.5px;
    border-radius: 100%;
    background-color: var(--official-color);
    transition: opacity 0.12s cubic-bezier(0.455, 0.03, 0.515, 0.955);
}
.ct-icon-container svg {
    width: 15px;
    height: 15px;
    fill: #ffffff;
}
.ct-social-box a:hover .ct-icon-container {
    opacity: 0.7;
}

/* ---------- column dividers (middle row only) ---------- */
@media (min-width: 1000px) {
    .ct-footer [data-row="middle"] [data-column] {
        position: relative;
    }
    .ct-footer [data-row="middle"] [data-column]:not(:last-child)::after {
        position: absolute;
        content: "";
        top: -13px;
        right: -15px;
        height: calc(100% + 26px);
        border-right: 1px solid rgba(255, 255, 255, 0.1);
    }
}
@media (min-width: 690px) and (max-width: 999.98px) {
    .ct-footer [data-row="middle"] > div {
        position: relative;
    }
    .ct-footer [data-row="middle"] > div::after {
        content: "";
        position: absolute;
        inset: 0;
        width: 0;
        margin: 0 auto;
        border-right: 1px solid rgba(255, 255, 255, 0.1);
    }
}
