/* ==================================================
   BLOCKSY FOOTER – FINAL VERSION
   Exact CSS for current Blocksy footer structure
   Optimized for cropped crypto logo assets
================================================== */

/* ==================================================
   1. FOOTER ROOT
================================================== */

#footer.ct-footer[data-id="type-1"] {
    background-color: #0b0b0d;
    color: #ffffff;
}

#footer.ct-footer[data-id="type-1"] * {
    box-sizing: border-box;
}

/* Remove empty paragraphs from widget blocks */
#footer.ct-footer[data-id="type-1"] .widget_text p:empty,
#footer.ct-footer[data-id="type-1"] .widget_block p:empty {
    display: none;
}

/* ==================================================
   2. ALL FOOTER ROWS
================================================== */

#footer.ct-footer[data-id="type-1"] [data-row="top"],
#footer.ct-footer[data-id="type-1"] [data-row="middle"],
#footer.ct-footer[data-id="type-1"] [data-row="bottom"] {
    background-color: #0b0b0d;
}

#footer.ct-footer[data-id="type-1"] [data-row="top"] > .ct-container-fluid,
#footer.ct-footer[data-id="type-1"] [data-row="middle"] > .ct-container-fluid,
#footer.ct-footer[data-id="type-1"] [data-row="bottom"] > .ct-container-fluid {
    max-width: 1680px;
    margin: 0 auto;
    padding-left: 60px;
    padding-right: 60px;
}

/* ==================================================
   3. TOP ROW – CUSTOM 4 COLUMN FOOTER
================================================== */

#footer.ct-footer[data-id="type-1"] [data-row="top"] > .ct-container-fluid {
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
}

#footer.ct-footer[data-id="type-1"] #block-13,
#footer.ct-footer[data-id="type-1"] #block-13 .akj-full-footer {
    width: 100%;
    margin: 0;
}

#footer.ct-footer[data-id="type-1"] .akj-full-footer {
    width: 100%;
    padding: 40px 0 30px;
    background-color: #0b0b0d;
}

#footer.ct-footer[data-id="type-1"] .akj-footer-row {
    max-width: 1680px;
    margin: 0 auto;
    padding: 0 60px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 50px;
    align-items: start;
}

#footer.ct-footer[data-id="type-1"] .akj-footer-col {
    min-width: 0;
}

/* Top footer menu titles */
#footer.ct-footer[data-id="type-1"] .akj-footer-col .akj-title {
    position: relative;
    display: inline-block;
    width: fit-content;
    max-width: 100%;
    margin: 0 0 20px;
    padding-bottom: 8px;
    color: #ffffff !important;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    text-transform: uppercase;
    overflow-wrap: break-word;
}

#footer.ct-footer[data-id="type-1"] .akj-footer-col .akj-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    background-color: #b80000;
}

#footer.ct-footer[data-id="type-1"] .akj-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

#footer.ct-footer[data-id="type-1"] .akj-links li {
    margin-bottom: 12px;
}

#footer.ct-footer[data-id="type-1"] .akj-links li:last-child {
    margin-bottom: 0;
}

#footer.ct-footer[data-id="type-1"] .akj-links a {
    display: inline-block;
    color: #b0b0b0 !important;
    font-size: 14px;
    line-height: 1.5;
    text-decoration: none !important;
    word-break: break-word;
    transition: color 0.25s ease, transform 0.25s ease, opacity 0.25s ease;
}

#footer.ct-footer[data-id="type-1"] .akj-links a:hover {
    color: #ffffff !important;
    opacity: 1;
    transform: translateX(4px);
}

/* ==================================================
   4. MIDDLE ROW – PAYMENT METHODS
================================================== */

#footer.ct-footer[data-id="type-1"] [data-row="middle"] > .ct-container-fluid {
    max-width: 1680px;
    margin: 0 auto;
    padding: 28px 60px 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: block;
}

/* Use full width for the only remaining widget area */
#footer.ct-footer[data-id="type-1"] [data-row="middle"] [data-column="widget-area-5"] {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

/* Remove extra spacing from widget wrappers */
#footer.ct-footer[data-id="type-1"] [data-row="middle"] [data-column="widget-area-5"] > .ct-widget,
#footer.ct-footer[data-id="type-1"] [data-row="middle"] [data-column="widget-area-5"] .widget_block,
#footer.ct-footer[data-id="type-1"] [data-row="middle"] [data-column="widget-area-5"] .widget_text,
#footer.ct-footer[data-id="type-1"] [data-row="middle"] [data-column="widget-area-5"] p:empty {
    margin: 0 !important;
    padding: 0 !important;
}

#footer.ct-footer[data-id="type-1"] .akj-footer-payment-methods {
    width: 100%;
    max-width: 100%;
}

#footer.ct-footer[data-id="type-1"] .akj-footer-payment-methods__title {
    position: relative;
    display: inline-block;
    width: fit-content;
    max-width: 100%;
    margin: 0 0 24px;
    padding-bottom: 8px;
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    text-transform: uppercase;
}

#footer.ct-footer[data-id="type-1"] .akj-footer-payment-methods__title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    background-color: #b80000;
}

/* Shared rows */
#footer.ct-footer[data-id="type-1"] .akj-footer-payment-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 18px 22px;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: visible;
}

#footer.ct-footer[data-id="type-1"] .akj-footer-payment-row--crypto {
    margin-bottom: 22px;
    gap: 18px 22px;
}

#footer.ct-footer[data-id="type-1"] .akj-footer-payment-row__item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

#footer.ct-footer[data-id="type-1"] .akj-footer-payment-row__item img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
}

/* Crypto logos – cropped assets, no scale hack needed */
#footer.ct-footer[data-id="type-1"] .akj-footer-payment-row--crypto .akj-footer-payment-row__item {
    justify-content: flex-start;
    min-width: 96px;
    min-height: 40px;
}

#footer.ct-footer[data-id="type-1"] .akj-footer-payment-row--crypto img {
    max-height: 32px;
    transform: none !important;
}

/* Payment logos */
#footer.ct-footer[data-id="type-1"] .akj-footer-payment-row--payments {
    gap: 16px 18px;
}

#footer.ct-footer[data-id="type-1"] .akj-footer-payment-row--payments .akj-footer-payment-row__item {
    justify-content: flex-start;
    min-width: 88px;
    min-height: 36px;
}

#footer.ct-footer[data-id="type-1"] .akj-footer-payment-row--payments img {
    max-height: 34px;
    transform: none !important;
}

/* ==================================================
   5. BOTTOM ROW – COPYRIGHT + SOCIALS
================================================== */

#footer.ct-footer[data-id="type-1"] [data-row="bottom"] > .ct-container-fluid {
    padding-top: 24px;
    padding-bottom: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 30px;
    align-items: center;
}

#footer.ct-footer[data-id="type-1"] .ct-footer-copyright p {
    margin: 0;
    color: rgba(255, 255, 255, 0.75);
    font-size: 13px;
    line-height: 1.6;
}

#footer.ct-footer[data-id="type-1"] .ct-footer-copyright a {
    color: #ffffff !important;
    text-decoration: none;
    transition: color 0.25s ease;
}

#footer.ct-footer[data-id="type-1"] .ct-footer-copyright a:hover {
    color: #b80000 !important;
}

#footer.ct-footer[data-id="type-1"] .ct-social-box {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

#footer.ct-footer[data-id="type-1"] .ct-social-box a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    opacity: 0.9;
    transition: color 0.25s ease, opacity 0.25s ease, transform 0.25s ease;
}

#footer.ct-footer[data-id="type-1"] .ct-social-box a:hover {
    color: #b80000;
    opacity: 1;
    transform: translateY(-1px);
}

#footer.ct-footer[data-id="type-1"] .ct-social-box svg {
    display: block;
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* ==================================================
   6. ACCESSIBILITY
================================================== */

#footer.ct-footer[data-id="type-1"] a:focus-visible {
    outline: 2px solid #b80000;
    outline-offset: 2px;
}

/* ==================================================
   7. RESPONSIVE
================================================== */

@media (max-width: 1199px) {
    #footer.ct-footer[data-id="type-1"] [data-row="middle"] > .ct-container-fluid,
    #footer.ct-footer[data-id="type-1"] [data-row="bottom"] > .ct-container-fluid,
    #footer.ct-footer[data-id="type-1"] .akj-footer-row {
        padding-left: 40px;
        padding-right: 40px;
    }

    #footer.ct-footer[data-id="type-1"] .akj-footer-row {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 40px;
    }
}

@media (max-width: 991px) {
    #footer.ct-footer[data-id="type-1"] .akj-footer-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 36px;
        padding-left: 30px;
        padding-right: 30px;
    }

    #footer.ct-footer[data-id="type-1"] [data-row="middle"] > .ct-container-fluid,
    #footer.ct-footer[data-id="type-1"] [data-row="bottom"] > .ct-container-fluid {
        padding-left: 30px;
        padding-right: 30px;
    }

    #footer.ct-footer[data-id="type-1"] .akj-footer-col .akj-title,
    #footer.ct-footer[data-id="type-1"] .akj-footer-payment-methods__title {
        font-size: 16px;
    }

    #footer.ct-footer[data-id="type-1"] .akj-footer-payment-row--crypto .akj-footer-payment-row__item {
        min-width: 82px;
    }

    #footer.ct-footer[data-id="type-1"] .akj-footer-payment-row--crypto img {
        max-height: 28px;
    }

    #footer.ct-footer[data-id="type-1"] .akj-footer-payment-row--payments .akj-footer-payment-row__item {
        min-width: 78px;
    }

    #footer.ct-footer[data-id="type-1"] .akj-footer-payment-row--payments img {
        max-height: 30px;
    }
}

@media (max-width: 767px) {
    #footer.ct-footer[data-id="type-1"] .akj-links a {
        font-size: 13px;
    }

    #footer.ct-footer[data-id="type-1"] .akj-footer-payment-row {
        gap: 12px 14px;
    }
}

@media (max-width: 575px) {
    #footer.ct-footer[data-id="type-1"] .akj-footer-row {
        grid-template-columns: 1fr;
        gap: 28px;
        padding-left: 20px;
        padding-right: 20px;
    }

    #footer.ct-footer[data-id="type-1"] [data-row="middle"] > .ct-container-fluid,
    #footer.ct-footer[data-id="type-1"] [data-row="bottom"] > .ct-container-fluid {
        padding-left: 20px;
        padding-right: 20px;
    }

    #footer.ct-footer[data-id="type-1"] [data-row="bottom"] > .ct-container-fluid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    #footer.ct-footer[data-id="type-1"] .ct-social-box {
        justify-content: center;
    }

    #footer.ct-footer[data-id="type-1"] .akj-footer-col .akj-title,
    #footer.ct-footer[data-id="type-1"] .akj-footer-payment-methods__title {
        font-size: 15px;
    }

    #footer.ct-footer[data-id="type-1"] .akj-footer-payment-row__item {
        min-width: auto;
    }

    #footer.ct-footer[data-id="type-1"] .akj-footer-payment-row--crypto img {
        max-height: 24px;
    }

    #footer.ct-footer[data-id="type-1"] .akj-footer-payment-row--payments img {
        max-height: 22px;
    }
}