
/* =========================================================
   DAYS & DATES - ORIGINAL FOOTER LAYOUT
   Scoped only to #site-footer. Does not affect modals.
========================================================= */

#site-footer {
    --footer-text: #344258;
    --footer-muted: #75808d;
    --footer-heading: #101522;
    --footer-border: #e8e9ed;
    --footer-surface: #f5f2ec;

    position: relative;
    width: 100%;
    margin: 0;
    padding: 78px 0 30px;
    background: var(--bs-body-bg, #fff);
    color: var(--footer-text);
    overflow: hidden;
    isolation: isolate;
}

#site-footer *,
#site-footer *::before,
#site-footer *::after {
    box-sizing: border-box;
}

/* Top gradient line */
#site-footer .footer-ambient-border {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(
        90deg,
        #4058ff 0%,
        #20b9b5 35%,
        #a4c94b 68%,
        #ff9b26 100%
    );
    z-index: 2;
}

/* Main container */
#site-footer > .site-container {
    width: min(100% - 48px, 1456px);
    max-width: 1456px;
    margin-left: auto;
    margin-right: auto;
}

/* Main 4-column layout */
#site-footer > .site-container > .row.g-5 {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr)
                           minmax(0, .85fr)
                           minmax(0, 1.05fr)
                           minmax(0, 1.05fr);
    column-gap: 54px;
    row-gap: 42px;

    margin: 0 0 48px !important;
    padding: 0;
}

/* Override Bootstrap column sizing only inside footer grid */
#site-footer > .site-container > .row.g-5 > [class*="col-"] {
    width: auto;
    max-width: none;
    min-width: 0;
    flex: initial;
    padding: 0;
    margin: 0;
}

/* Brand */
#site-footer .footer-brand-block {
    width: 100%;
    max-width: 470px;
}

#site-footer .brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px !important;
    color: var(--footer-heading);
    text-decoration: none;
}

#site-footer .logo-mark {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

#site-footer .logo-img {
    display: block;
    width: 46px;
    height: 46px;
    object-fit: contain;
    border-radius: 50%;
}

#site-footer .logo-text-group {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

#site-footer .brand-name {
    color: var(--footer-heading);
    font-size: 26px !important;
    font-weight: 800;
    letter-spacing: -1px;
}

#site-footer .brand-accent {
    color: #f47724;
}

#site-footer .brand-tagline {
    margin-top: 3px;
    color: var(--footer-muted) !important;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Brand description */
#site-footer .footer-brand-block > p {
    max-width: 460px;
    margin: 0 0 25px !important;
    padding-right: 8px;
    color: var(--footer-muted) !important;
    font-size: 15.5px !important;
    line-height: 1.52 !important;
}

/* Column headings */
#site-footer .footer-heading {
    margin: 0 0 22px;
    color: var(--footer-heading);
    font-size: 15px;
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: .65px;
    text-transform: uppercase;
}

/* Footer links */
#site-footer .footer-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 0;
    padding: 0;
    list-style: none;
}

#site-footer .footer-links li {
    margin: 0;
    padding: 0;
    line-height: 1.45;
}

#site-footer .footer-links a {
    display: inline-flex;
    align-items: flex-start;
    gap: 3px;
    color: var(--footer-text);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.5;
    text-decoration: none;
    transition: color .2s ease, transform .2s ease;
}

#site-footer .footer-links a:hover {
    color: var(--brand-primary, #4058ff);
    transform: translateX(3px);
}

#site-footer .footer-links a > i {
    flex: 0 0 auto;
    margin-top: 4px;
    color: #b6c0cb;
    font-size: 12px;
}

/* Social section */
#site-footer .footer-social-wrapper {
    margin-bottom: 25px !important;
}

#site-footer .footer-social-title {
    margin-bottom: 10px !important;
    color: #64758e;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .9px;
    text-transform: uppercase;
}

#site-footer .footer-social-cluster {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
}

#site-footer .footer-social-btn {
    display: inline-flex;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2dfd8;
    border-radius: 50%;
    background: #f5f2ec;
    color: #344258;
    font-size: 17px;
    text-decoration: none;
    transition: all .2s ease;
}

#site-footer .footer-social-btn:hover {
    transform: translateY(-3px);
    border-color: var(--brand-primary, #4058ff);
    background: var(--brand-primary, #4058ff);
    color: #fff;
}

/* Trust badges */
#site-footer .badge-tag {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 4px 12px;
    border: 1px solid transparent;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: .6px;
    text-transform: uppercase;
    white-space: nowrap;
}

#site-footer .badge-tag-primary {
    border-color: #d8d3ff;
    background: #f1efff;
    color: #6255ff;
}

#site-footer .badge-tag-emerald {
    border-color: #bcebdc;
    background: #eaf9f3;
    color: #00a77b;
}

#site-footer .badge-tag-gold {
    border-color: #ffe2b9;
    background: #fff4e4;
    color: #ed941d;
}

/* Regional timezone card */
#site-footer .footer-timezone-box {
    width: 100%;
    margin-top: 26px;
    padding: 16px 18px !important;
    border: 1px solid #e2ded6 !important;
    border-radius: 18px !important;
    background: var(--footer-surface);
}

#site-footer .footer-radar-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    flex: 0 0 9px;
    border-radius: 50%;
    background: #13bd86;
    box-shadow: 0 0 0 4px rgba(19, 189, 134, .10);
}

#site-footer #footerUtcOffset {
    padding: 3px 6px;
    border: 1px solid #e4e1db;
    background: rgba(255,255,255,.45);
    color: #68758a;
}

#site-footer #footerClockLive {
    color: #0877ff !important;
    font-size: 20px !important;
    font-weight: 800;
    letter-spacing: .5px;
}

#site-footer #footerTimezoneDisplay {
    color: #68758a !important;
    font-size: 13px;
}

/* Bottom copyright bar */
#site-footer .footer-bottom-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;

    margin-top: 0 !important;
    padding-top: 25px !important;
    border-top: 1px solid var(--footer-border) !important;
}

#site-footer .footer-bottom-bar > div {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    color: #666b72 !important;
    font-size: 15px !important;
    line-height: 1.6;
}

/* Back to top */
.back-to-top-btn {
    position: fixed;
    right: 32px;
    bottom: 28px;
    z-index: 1030;

    display: flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;

    border: 3px solid var(--brand-primary, #5145ff);
    border-radius: 50%;
    background: #fff;
    color: #202638;
    box-shadow: 0 4px 15px rgba(0,0,0,.08);
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease;
}

.back-to-top-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 7px 20px rgba(0,0,0,.13);
}

.back-to-top-btn .back-to-top-progress {
    position: absolute;
    inset: -3px;
    width: 48px;
    height: 48px;
    pointer-events: none;
}

.back-to-top-btn > i {
    position: relative;
    z-index: 1;
    font-size: 19px;
}

/* Tablet: two columns */
@media (max-width: 991.98px) {
    #site-footer {
        padding-top: 58px;
    }

    #site-footer > .site-container > .row.g-5 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 36px;
        row-gap: 42px;
    }

    #site-footer .footer-brand-block {
        max-width: 100%;
    }
}

/* Mobile: one column */
@media (max-width: 575.98px) {
    #site-footer {
        padding: 48px 0 24px;
    }

    #site-footer > .site-container {
        width: calc(100% - 36px);
    }

    #site-footer > .site-container > .row.g-5 {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 34px;
        margin-bottom: 35px !important;
    }

    #site-footer .footer-heading {
        margin-bottom: 15px;
    }

    #site-footer .footer-brand-block > p {
        font-size: 14.5px !important;
    }

    #site-footer .footer-bottom-bar > div {
        align-items: flex-start;
        gap: 7px;
        font-size: 13px !important;
    }

    #site-footer .footer-timezone-box {
        max-width: 100%;
    }

    .back-to-top-btn {
        right: 16px;
        bottom: 18px;
    }
}

/* Dark theme */
[data-theme="dark"] #site-footer,
[data-bs-theme="dark"] #site-footer {
    --footer-text: #c5ccda;
    --footer-muted: #929cad;
    --footer-heading: #f1f3f8;
    --footer-border: #303746;
    --footer-surface: #1c2330;

    background: #090b10;
}

[data-theme="dark"] #site-footer .footer-social-btn,
[data-bs-theme="dark"] #site-footer .footer-social-btn {
    border-color: #343b49;
    background: #171d28;
    color: #dce2ed;
}

[data-theme="dark"] #site-footer .footer-timezone-box,
[data-bs-theme="dark"] #site-footer .footer-timezone-box {
    border-color: #343b49 !important;
}

[data-theme="dark"] #site-footer #footerUtcOffset,
[data-bs-theme="dark"] #site-footer #footerUtcOffset {
    border-color: #343b49;
    background: #171d28;
    color: #c5ccda;
}

[data-theme="dark"] .back-to-top-btn {
    border-color: #7068ff;
    background: #171d28;
    color: #fff;
}



/* =========================================================
   BACK TO TOP - CIRCULAR SCROLL PROGRESS
========================================================= */

#backToTopBtn {
    position: fixed !important;
    right: 40px !important;
    bottom: 38px !important;

    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    min-height: 48px !important;

    padding: 0 !important;
    margin: 0 !important;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 0 !important;
    border-radius: 50% !important;

    background: #fff !important;
    color: #202638 !important;

    box-shadow: 0 3px 14px rgba(0, 0, 0, .10);
    cursor: pointer;

    z-index: 1050 !important;
    transition: transform .2s ease, box-shadow .2s ease;
}

/* SVG progress ring */
#backToTopBtn .back-to-top-progress {
    position: absolute;
    inset: 0;

    display: block;
    width: 48px;
    height: 48px;

    overflow: visible;
    pointer-events: none;
}

/* Background circle */
#backToTopBtn .back-to-top-progress circle:first-child {
    stroke: rgba(81, 69, 255, .18);
    stroke-width: 3;
    fill: none;
}

/* Scroll progress circle */
#backToTopBtn #scrollProgressCircle {
    stroke: #5145ff;
    stroke-width: 3;
    stroke-linecap: round;
    fill: none;
    transform: rotate(-90deg);
    transform-origin: 24px 24px;
}

/* Center arrow */
#backToTopBtn > i {
    position: relative;
    z-index: 2;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 19px;
    line-height: 1;
    color: #202638;
}

/* Hover */
#backToTopBtn:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(81, 69, 255, .18);
}

/* Dark mode */
[data-theme="dark"] #backToTopBtn,
[data-bs-theme="dark"] #backToTopBtn {
    background: #171d28 !important;
    color: #fff !important;
}

[data-theme="dark"] #backToTopBtn > i,
[data-bs-theme="dark"] #backToTopBtn > i {
    color: #fff;
}

/* Mobile */
@media (max-width: 575.98px) {
    #backToTopBtn {
        right: 18px !important;
        bottom: 22px !important;
    }
}
