.ta-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    box-sizing: border-box;
}

.ta-page-title {
    font-size: 34px;
    font-weight: 800;
    color: #111;
    margin: 0 0 24px;
}

.direction-switcher-wrapper {
    position: relative;
    padding-bottom: 18px;
}

.direction-switcher {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
    position: relative;
}

.direction-gradient {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 54px;
    height: 140px;
    pointer-events: none;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.85) 55%,
        rgba(255, 255, 255, 0.95) 75%,
        #fff 100%
    );
    transition: opacity 0.2s ease;
    z-index: 1;
    opacity: 0;
    visibility: hidden;
}

[data-direction-wrapper][data-direction-desktop-hidden="true"][data-direction-expanded="false"] .direction-gradient {
    opacity: 1;
    visibility: visible;
}

[data-direction-expanded="true"] .direction-gradient {
    opacity: 0;
    visibility: hidden;
}

.direction-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(15, 23, 42, 0.10);
    text-decoration: none;
    color: #111827;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.direction-card.is-hidden {
    display: none;
}

.direction-card:hover {
    transform: translateY(-2px);
    border-color: rgba(79, 70, 229, 0.35);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.10);
}

.direction-card.active {
    border-color: rgba(79, 70, 229, 0.55);
    box-shadow: 0 14px 34px rgba(79, 70, 229, 0.18);
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.08), rgba(139, 92, 246, 0.10));
}

.direction-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    flex: 0 0 auto;
}

.direction-icon img {
    max-width: 44px;
    max-height: 32px;
}

.direction-content p {
    margin: 0;
    font-weight: 900;
}

.direction-content span {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #6b7280;
}

.direction-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 12px 24px;
    background: rgba(79, 70, 229, 0.08);
    color: #111827;
    font-weight: 900;
    margin: -6px auto 18px;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, color 0.18s ease, background 0.18s ease;
    box-shadow: 0 10px 24px rgba(79, 70, 229, 0.14);
}

.direction-toggle:hover {
    background: rgba(79, 70, 229, 0.12);
    color: #4f46e5;
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(79, 70, 229, 0.18);
}

.ta-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.ta-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
    text-decoration: none;
    color: inherit;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.ta-card:hover {
    transform: translateY(-2px);
    border-color: rgba(79, 70, 229, 0.25);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.10);
}

.ta-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.ta-card-direction {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: #1f2937;
    min-width: 0;
}

.ta-card-direction img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    flex: 0 0 auto;
}

.ta-card-date {
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    flex: 0 0 auto;
}

.ta-card-title {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    color: #111827;
    line-height: 1.25;
}

.ta-card-company {
    font-size: 14px;
    font-weight: 700;
    color: #374151;
}

.ta-empty-state {
    grid-column: 1 / -1;
    padding: 18px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px dashed rgba(15, 23, 42, 0.12);
}

.ta-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
    align-items: center;
}

.ta-pagination a,
.ta-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(15, 23, 42, 0.10);
    text-decoration: none;
    color: #111827;
    font-weight: 700;
}

.ta-pagination span.active {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    border-color: transparent;
    color: #fff;
}

.ta-total-records {
    margin-top: 10px;
    color: #6b7280;
    font-weight: 700;
    font-size: 13px;
}

@media (max-width: 1024px) {
    .ta-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .ta-container {
        padding: 26px 14px;
    }
    .ta-page-title {
        font-size: 28px;
    }
    .ta-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    [data-direction-wrapper][data-direction-expanded="false"] [data-direction-card]:nth-of-type(n+5) {
        display: none;
    }

    [data-direction-wrapper][data-direction-expanded="false"] .direction-switcher {
        margin-bottom: 56px;
    }

    [data-direction-wrapper][data-direction-expanded="false"] .direction-gradient {
        opacity: 1;
        visibility: visible;
    }
}
