/* ==========================================================
   Footer TPKS — modern card grid with icons & click-to-action
   ========================================================== */

.tpks-footer-wrapper {
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    margin-top: 40px;
}

/* Top accent stripe with subtle gradient */
.tpks-footer-accent {
    height: 4px;
    background: linear-gradient(90deg, #0ea5e9 0%, #2563eb 50%, #1e40af 100%);
}

/* Main footer area */
.tpks-footer-main {
    background: #f8fafc;
    padding: 32px 0 24px;
    border-top: 1px solid #e2e8f0;
}

.tpks-footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 28px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.tpks-footer-col {
    color: #334155;
    font-size: 12.5px;
    line-height: 1.55;
}

.tpks-footer-title {
    font-size: 12px;
    font-weight: 700;
    color: #1e40af;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 6px;
    padding-bottom: 6px;
    border-bottom: 2px solid #dbeafe;
}
.tpks-footer-title svg {
    width: 14px;
    height: 14px;
    color: #2563eb;
    flex-shrink: 0;
}

/* Contact item with icon */
.tpks-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 8px;
    color: #475569;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}
.tpks-contact-item:hover {
    color: #2563eb;
    transform: translateX(2px);
}
.tpks-contact-item svg {
    width: 14px;
    height: 14px;
    color: #94a3b8;
    flex-shrink: 0;
    margin-top: 2px;
    transition: color 0.2s ease;
}
.tpks-contact-item:hover svg { color: #2563eb; }

.tpks-contact-label {
    color: #64748b;
    font-weight: 500;
    min-width: 70px;
    display: inline-block;
}
.tpks-contact-value {
    color: #1e293b;
    font-weight: 500;
}
.tpks-contact-value-link {
    color: #1e293b;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}
.tpks-contact-value-link:hover {
    color: #2563eb;
    text-decoration: underline;
}

.tpks-contact-time {
    font-size: 11px;
    color: #94a3b8;
    margin-left: 22px;
    margin-bottom: 6px;
    font-style: italic;
}

/* Address block */
.tpks-address {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 6px;
}
.tpks-address svg {
    width: 14px;
    height: 14px;
    color: #94a3b8;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Static info item (tanpa hover effect, mis. info user yang sedang login) */
.tpks-contact-item.static {
    cursor: default;
}
.tpks-contact-item.static:hover {
    color: #475569;
    transform: none;
}
.tpks-contact-item.static:hover svg {
    color: #94a3b8;
}

/* Bottom copyright bar */
.tpks-footer-copyright {
    background: #0f172a;
    color: #94a3b8;
    padding: 14px 20px;
    text-align: center;
    font-size: 11.5px;
    letter-spacing: 0.02em;
}
.tpks-footer-copyright strong {
    color: #cbd5e1;
}

/* Section divider inside column */
.tpks-section-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 14px 0 10px;
}

/* Sub-heading */
.tpks-subtitle {
    font-size: 11px;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0 0 6px 0;
}

/* External link icon */
.tpks-link-external {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}
.tpks-link-external:hover { color: #1e40af; text-decoration: underline; }
.tpks-link-external svg { width: 11px; height: 11px; }

/* Scroll-to-top button (floating) */
.tpks-scroll-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #2563eb, #1e40af);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.3s ease;
    opacity: 0;
}
.tpks-scroll-top.visible {
    display: flex;
    opacity: 1;
}
.tpks-scroll-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(37, 99, 235, 0.5);
}
.tpks-scroll-top svg { width: 20px; height: 20px; }

@media (max-width: 768px) {
    .tpks-footer-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }
    .tpks-scroll-top {
        bottom: 16px;
        right: 16px;
        width: 40px;
        height: 40px;
    }
}
