/* Didi footer — phptema-style layout (htdocsphp reference) */

.didi-footer.phptema-footer {
    --pt-bg: #0e2a62;
    --pt-border: rgba(255, 255, 255, .2);
    --pt-text: #fff;
    --pt-text-muted: #a3b2c7;
    --pt-accent: var(--primary-bg, #3375f6);
    --pt-radius: 6px;
    --didi-container: 1400px;
    font-family: 'Campton', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    position: relative;
    z-index: 5;
    clear: both;
    background: var(--pt-bg);
    border-top: 1px solid var(--pt-border);
    color: var(--pt-text);
    padding-top: 0;
    margin-top: 0;
}

.didi-footer.phptema-footer .didi-container {
    width: min(var(--didi-container), calc(100% - 24px));
    margin-inline: auto;
}

/* Ana footer */
.didi-footer.phptema-footer .footer-main-div {
    padding: 56px 0 20px;
}

.didi-footer.phptema-footer .footer-inside {
    display: grid;
    grid-template-columns: minmax(280px, 320px) 1fr;
    gap: 40px;
}

.didi-footer.phptema-footer .footer-logo-area {
    display: flex;
    flex-direction: column;
    align-self: stretch;
    min-height: 100%;
}

.didi-footer.phptema-footer .footer-logo {
    display: inline-flex;
    align-items: center;
    max-width: 180px;
}

.didi-footer.phptema-footer .footer-logo img {
    display: block;
    width: auto;
    height: auto;
    max-width: 180px;
    max-height: 35px;
    object-fit: contain;
    margin-bottom: 10px;
    filter: brightness(0) invert(1);
}

.didi-footer.phptema-footer .footer-btk-logo {
    margin-top: auto;
    padding-top: 28px;
}

.didi-footer.phptema-footer .footer-btk-logo img {
    display: block;
    width: auto;
    height: auto;
    max-width: 188px;
    max-height: 52px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: .92;
}

.didi-footer.phptema-footer .footer-contact {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.didi-footer.phptema-footer .footer-contact-i {
    color: #fff;
    font-size: 18px;
    flex-shrink: 0;
}

.didi-footer.phptema-footer .footer-contact-txt {
    font-size: 14px;
    color: var(--pt-text);
    text-decoration: none;
}

.didi-footer.phptema-footer .footer-contact-txt:hover {
    color: var(--pt-accent);
}

.didi-footer.phptema-footer .footer-offer {
    margin: 0 0 20px;
}

.didi-footer.phptema-footer .footer-offer-h {
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 6px;
    color: var(--pt-text);
}

.didi-footer.phptema-footer .footer-offer-s {
    font-size: 13px;
    color: var(--pt-text-muted);
    line-height: 1.5;
    margin-bottom: 0;
}

.didi-footer.phptema-footer .footer-social {
    display: grid;
    grid-template-columns: repeat(4, 44px);
    justify-content: start;
    gap: 10px;
    margin-top: auto;
    padding-top: 36px;
}

.didi-footer.phptema-footer .footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--pt-radius, 6px);
    border: 1px solid var(--pt-border);
    background: transparent;
    color: #fff;
    font-size: 16px;
    line-height: 1;
    text-decoration: none;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.didi-footer.phptema-footer .footer-social a:hover {
    color: #fff;
    border-color: #fff;
    background: rgba(255, 255, 255, .1);
}

.didi-footer.phptema-footer .footer-offer-link {
    display: inline-block;
    padding: 10px 16px;
    background: #8e9ef1;
    color: #fff !important;
    font-size: 11px;
    font-weight: 700;
    border-radius: var(--pt-radius);
    text-decoration: none;
    transition: background 0.2s ease;
}

.didi-footer.phptema-footer .footer-offer-link:hover {
    background: #7a8de8;
    color: #fff !important;
}

.didi-footer.phptema-footer .footer-links-area {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 220px));
    gap: 24px 32px;
    align-items: start;
}

.didi-footer.phptema-footer .footer-nav-area {
    display: grid;
    grid-template-columns: 1fr minmax(320px, 420px);
    gap: clamp(20px, 3vw, 32px);
    align-items: stretch;
}

.didi-footer.phptema-footer .footer-aside {
    display: flex;
    flex-direction: column;
    align-self: stretch;
    min-height: 100%;
    gap: 12px;
}

.didi-footer.phptema-footer .footer-newsletter {
    position: relative;
    overflow: visible;
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: 0;
}

.didi-footer.phptema-footer .footer-newsletter__title {
    display: flex;
    align-items: center;
    box-sizing: border-box;
    min-height: 43px;
    margin: 0 0 14px;
    padding: 0 0 10px;
    border-bottom: 1px solid rgba(255, 255, 255, .2);
    font-size: 18px;
    font-weight: 600;
    line-height: 32px;
    letter-spacing: 0.16px;
    color: #fff;
}

.didi-footer.phptema-footer .footer-newsletter__desc {
    margin: 0 0 12px;
    font-size: .82rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, .82);
}

.didi-footer.phptema-footer .footer-newsletter__form {
    display: grid;
    gap: 8px;
}

.didi-footer.phptema-footer .footer-newsletter__field {
    display: block;
}

.didi-footer.phptema-footer .footer-newsletter__field input {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid rgba(255, 255, 255, .55);
    border-radius: 6px;
    background: rgba(255, 255, 255, .06);
    color: #fff;
    font: inherit;
    font-size: .82rem;
}

.didi-footer.phptema-footer .footer-newsletter__field input::placeholder {
    color: rgba(255, 255, 255, .72);
}

.didi-footer.phptema-footer .footer-newsletter__field input:focus {
    outline: none;
    border-color: #fff;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, .18);
}

.didi-footer.phptema-footer .footer-newsletter__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 11px 16px;
    border: 0;
    border-radius: 6px;
    background: #5cb85c;
    color: #fff;
    font: inherit;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .15s ease;
}

.didi-footer.phptema-footer .footer-newsletter__submit:hover {
    background: #4da54d;
}

.didi-footer.phptema-footer .footer-app-stores {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 10px;
    margin-top: auto;
    padding-top: 36px;
}

.didi-footer.phptema-footer .footer-app-store {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 1 1 0;
    min-width: 0;
    min-height: 44px;
    padding: 10px 14px;
    border-radius: 8px;
    background: transparent;
    color: #fff;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, .75);
    box-shadow: none;
    transition: background .15s ease, border-color .15s ease, transform .15s ease;
}

.didi-footer.phptema-footer .footer-app-store:hover {
    background: rgba(255, 255, 255, .08);
    border-color: #fff;
    transform: translateY(-1px);
}

.didi-footer.phptema-footer .footer-app-store__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.45rem;
    line-height: 1;
    color: #fff;
}

.didi-footer.phptema-footer .footer-app-store__text {
    display: grid;
    gap: 1px;
    min-width: 0;
    text-align: left;
}

.didi-footer.phptema-footer .footer-app-store__label {
    font-size: .58rem;
    line-height: 1.2;
    letter-spacing: .02em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .82);
}

.didi-footer.phptema-footer .footer-app-store__name {
    font-size: .92rem;
    font-weight: 600;
    line-height: 1.1;
    color: #fff;
}

.didi-footer.phptema-footer .footer-links-box {
    min-width: 0;
    max-width: 220px;
}

.didi-footer.phptema-footer .footer-links-box-h {
    display: flex;
    align-items: center;
    box-sizing: border-box;
    min-height: 43px;
    margin: 0 0 14px;
    padding: 0 0 10px;
    border-bottom: 1px solid rgba(255, 255, 255, .2);
    font-size: 18px;
    font-weight: 600;
    line-height: 32px;
    letter-spacing: 0.16px;
    color: #fff;
}

.didi-footer.phptema-footer .footer-links-box-a {
    display: block;
    font-size: 13px;
    font-weight: 400;
    color: #a3b2c7;
    letter-spacing: 0.16px;
    line-height: 28px;
    text-decoration: none;
    padding: 0;
    margin: 0;
    transition: color 0.2s ease;
}

.didi-footer.phptema-footer .footer-links-box-a:hover {
    color: #fff;
}

.didi-footer.phptema-footer .footer-bottom-area {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--pt-border);
    grid-column: 1 / -1;
    gap: 16px;
    flex-wrap: wrap;
}

.didi-footer.phptema-footer .footer-bottom-area-left p {
    margin: 0 0 4px;
    font-size: 13px;
    font-weight: 600;
    color: var(--pt-text);
}

.didi-footer.phptema-footer .footer-btk-notice {
    max-width: none;
    font-size: 12px !important;
    font-weight: 400 !important;
    color: var(--pt-text-muted) !important;
    line-height: 1.5;
    margin-top: 8px !important;
    white-space: nowrap;
}

.didi-footer.phptema-footer .footer-bottom-area-right img {
    max-height: 28px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: .92;
}

.didi-footer.phptema-footer .footer-bottom-area-left a,
.didi-footer.phptema-footer .footer-logo a {
    color: var(--pt-text);
    text-decoration: none;
}

.didi-footer.phptema-footer .footer-bottom-area-left a:hover {
    color: var(--pt-accent);
}

/* Responsive */
@media (max-width: 991.98px) {
    .didi-footer.phptema-footer .footer-inside {
        grid-template-columns: 1fr;
    }

    .didi-footer.phptema-footer .footer-nav-area {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .didi-footer.phptema-footer .footer-links-area {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 32px 40px;
    }

    .didi-footer.phptema-footer .footer-links-box {
        max-width: none;
    }
}

@media (max-width: 767.98px) {
    .didi-footer.phptema-footer .footer-links-area {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .didi-footer.phptema-footer .footer-social {
        padding-top: 24px;
    }

    .didi-footer.phptema-footer .footer-app-stores {
        padding-top: 24px;
    }

    .didi-footer.phptema-footer .footer-bottom-area {
        flex-direction: column;
        align-items: flex-start;
    }

    .didi-footer.phptema-footer .footer-btk-notice {
        white-space: normal;
    }
}

@media (prefers-reduced-motion: reduce) {
    .didi-footer.phptema-footer * {
        transition: none !important;
        animation: none !important;
    }
}

/* Hide legacy WISECP footer blocks */
.footer:not(.didi-footer):not(.phptema-footer),
.ebulten,
.footlogos {
    display: none !important;
}
